Skip to content

Commit

Permalink
Disable Quest level function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Oct 20, 2020
1 parent bda7940 commit 13ed994
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions ShestakUI/Modules/Quests/QuestLog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- Quest level
----------------------------------------------------------------------------------------
local function Showlevel()
for button in pairs(QuestScrollFrame.titleFramePool.activeObjects) do
local title = button.info.title
local isHeader = button.info.isHeader
local level = button.info.level
if title and not isHeader then
local title = level ~= T.level and "["..level.."] "..title or title
local height = button.Text:GetHeight()
button.Text:SetText(title)
button.Text:SetWidth(190)
button.Check:SetPoint("LEFT", button.Text, button.Text:GetWrappedWidth() + 2, 0)
button:SetHeight(button:GetHeight() - height + button.Text:GetHeight())
end
end
end
hooksecurefunc("QuestLogQuests_Update", Showlevel)
-- It breaks space between quests
--FIXME local function Showlevel()
-- for button in pairs(QuestScrollFrame.titleFramePool.activeObjects) do
-- local title = button.info.title
-- local isHeader = button.info.isHeader
-- local level = button.info.level
-- if title and not isHeader then
-- local title = level ~= T.level and "["..level.."] "..title or title
-- local height = button.Text:GetHeight()
-- button.Text:SetText(title)
-- button.Text:SetWidth(190)
-- button.Check:SetPoint("LEFT", button.Text, button.Text:GetWrappedWidth() + 2, 0)
-- button:SetHeight(button:GetHeight() - height + button.Text:GetHeight())
-- end
-- end
-- end
-- hooksecurefunc("QuestLogQuests_Update", Showlevel)

----------------------------------------------------------------------------------------
-- Ctrl+Click to abandon a quest or Alt+Click to share a quest(by Suicidal Katt)
Expand Down

0 comments on commit 13ed994

Please sign in to comment.