Mercurial > wow > buffalo2
diff ObjectiveInfo.lua @ 2:a2396b03ce63
- identify action buttons by the associated QuestID instead of QuestLogIndex
- deferred button placement in general to a self-destructing OnUpdate
-- and defer self-destruct to a end of combat event if InCombatLockdown
- tracker wrapper has an experience/reputation bar; the two elements "feel" related and it's a very simple info display
author | Nenue |
---|---|
date | Thu, 31 Mar 2016 01:38:47 -0400 |
parents | b0447b382f36 |
children | 3397aae1f44d |
line wrap: on
line diff
--- a/ObjectiveInfo.lua Wed Mar 30 16:30:49 2016 -0400 +++ b/ObjectiveInfo.lua Thu Mar 31 01:38:47 2016 -0400 @@ -19,11 +19,9 @@ 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) -print(GetQuestWatchInfo(watchIndex)) if not questID then return end - print(self.Info) self.Info[questID] = self.Info[questID] or {} local q = self.Info[questID] @@ -52,9 +50,7 @@ q.isDaily = QuestIsDaily() q.isWeekly = QuestIsWeekly() ----------------------------------------- - --- End QuestLogEntry calls - print(' |cFF0088FF', q.isDaily, q.isWeekly) q.isComplete = IsQuestComplete(questID) q.isBreadCrumb = IsBreadcrumbQuest(questID) @@ -109,7 +105,7 @@ end self.LogInfo[questIndex] = q - print('|cFF0088FFGetQuestInfo('..questID..')|r', questIndex, title) + print('- logIndex =', questIndex, 'title =', title) return q end