Commit 596841e1 authored by Merathilis's avatar Merathilis

Update QuestInfo skin.

parent 56d3862f
......@@ -45,11 +45,28 @@ local function styleQuestInfo()
-- [[ Objectives ]]
restyleSpellButton(_G.QuestInfoSpellObjectiveFrame)
local function QuestInfo_GetQuestID()
if QuestInfoFrame.questLog then
return select(8, GetQuestLogTitle(GetQuestLogSelection()))
else
return GetQuestID()
end
end
local function colorObjectivesText()
if not _G.QuestInfoFrame.questLog then return end
local questID = QuestInfo_GetQuestID()
local objectivesTable = _G.QuestInfoObjectivesFrame.Objectives
local numVisibleObjectives = 0
local objective
local waypointText = C_QuestLog.GetNextWaypointText(questID);
if waypointText then
numVisibleObjectives = numVisibleObjectives + 1;
objective = objectivesTable[numVisibleObjectives]
objective:SetTextColor(1, 1, 1)
end
for i = 1, GetNumQuestLeaderBoards() do
local _, type, finished = GetQuestLogLeaderBoard(i)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment