Mercurial > wow > buffalo2
diff ObjectiveTracker/QuestTracker.lua @ 24:66b927b46776
Refine the XML data logic, and sort out some EnableMouse inconsistencies.
author | Nenue |
---|---|
date | Mon, 11 Apr 2016 09:07:40 -0400 |
parents | e837384ac363 |
children | 4b3da1b221de |
line wrap: on
line diff
--- a/ObjectiveTracker/QuestTracker.lua Sun Apr 10 04:35:32 2016 -0400 +++ b/ObjectiveTracker/QuestTracker.lua Mon Apr 11 09:07:40 2016 -0400 @@ -6,8 +6,18 @@ local format = format local print = B.print('Tracker') local lprint = B.print('Line') +local iprint = B.print('Info') local colors = T.colors + +local tprint = B.print('Tracker') +Quest.Update = function(self, reason, ...) + local print = tprint + print('QuestTracker:Update() received') + T.UpdateActionButtons() + Default.Update(self, reason, ...) +end + Quest.UpdateObjectives = function(handler, block) local print = lprint print('|cFF00FFFFUpdateObjectives()') @@ -40,7 +50,7 @@ local questID, popupType = GetAutoQuestPopUp(info.questLogIndex) if popupType == 'COMPLETE' then print(' :: auto-complete quest :: set the message') - info.completionText = CLICK_TO_COMPLETE + info.completionText = T.strings.CLICK_TO_COMPLETE end end if info.isComplete then @@ -82,8 +92,6 @@ ----------------------------- --- QUEST -Quest.itemButtons = {} -Quest.freeButtons = {} Quest.POI = {} Quest.QuestBlock = {} Quest.LogBlock = {} @@ -96,9 +104,10 @@ return self.numWatched, self.numAll end Quest.GetInfo = function (self, watchIndex) + local print = iprint print('|cFF00DDFFQuest|r.|cFF0088FFGetInfo(|r'.. tostring(watchIndex)..'|r)') - local questID, title, questIndex, numObjectives, requiredMoney, isComplete, - startEvent, isAutoComplete, failureTime, timeElapsed, questType, isTask, isStory, isOnMap, hasLocalPOI = GetQuestWatchInfo(watchIndex) + local questID, title, questIndex, numObjectives, requiredMoney, _, + _, isAutoComplete, failureTime, timeElapsed, questType, _, _, _, _ = GetQuestWatchInfo(watchIndex) if not questIndex then return