Mercurial > wow > buffalo2
comparison ObjectiveTracker/QuestTracker.lua @ 25:4b3da1b221de v1.0-beta
- distinction between all possible types of values for the 'isComplete' field
- style polish applied to title headers
- clickable regions altered to somewhat match those of the blizzard objectives tracker, for more world frame space and quicker user familiarity
author | Nenue |
---|---|
date | Wed, 13 Apr 2016 11:20:09 -0400 |
parents | 66b927b46776 |
children |
comparison
equal
deleted
inserted
replaced
24:66b927b46776 | 25:4b3da1b221de |
---|---|
44 | 44 |
45 block.titlebg:SetGradientAlpha(unpack(titlebg)) | 45 block.titlebg:SetGradientAlpha(unpack(titlebg)) |
46 block.statusbg:SetGradientAlpha(unpack(textbg)) | 46 block.statusbg:SetGradientAlpha(unpack(textbg)) |
47 | 47 |
48 local completionText | 48 local completionText |
49 if info.isAutoComplete then | |
50 local questID, popupType = GetAutoQuestPopUp(info.questLogIndex) | |
51 if popupType == 'COMPLETE' then | |
52 print(' :: auto-complete quest :: set the message') | |
53 info.completionText = T.strings.CLICK_TO_COMPLETE | |
54 end | |
55 end | |
56 if info.isComplete then | 49 if info.isComplete then |
57 if not completionText or info.completionText then | 50 if info.isAutoComplete then |
58 info.completionText = GetQuestLogCompletionText(info.questLogIndex) | 51 local questID, popupType = GetAutoQuestPopUp(info.questLogIndex) |
52 if popupType == 'COMPLETE' then | |
53 print(' :: auto-complete quest :: set the message') | |
54 info.completionText = T.strings.CLICK_TO_COMPLETE | |
55 end | |
56 else | |
57 if not completionText or info.completionText then | |
58 info.completionText = GetQuestLogCompletionText(info.questLogIndex) | |
59 end | |
59 end | 60 end |
60 print(' :: complete quest :: show instruction: "'.. tostring(info.completionText) .. '"') | 61 print(' :: complete quest :: show instruction: "'.. tostring(info.completionText) .. '"') |
61 end | 62 end |
62 | 63 |
63 Default.UpdateObjectives(handler, block) | 64 Default.UpdateObjectives(handler, block) |
110 _, isAutoComplete, failureTime, timeElapsed, questType, _, _, _, _ = GetQuestWatchInfo(watchIndex) | 111 _, isAutoComplete, failureTime, timeElapsed, questType, _, _, _, _ = GetQuestWatchInfo(watchIndex) |
111 | 112 |
112 if not questIndex then | 113 if not questIndex then |
113 return | 114 return |
114 end | 115 end |
116 | |
115 | 117 |
116 local _, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, _, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questIndex) | 118 local _, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, _, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questIndex) |
117 | 119 |
118 | 120 |
119 if not questID then | 121 if not questID then |
192 end | 194 end |
193 | 195 |
194 | 196 |
195 q.tagID = questTagID | 197 q.tagID = questTagID |
196 q.tagName = tagName | 198 q.tagName = tagName |
197 | |
198 | |
199 | |
200 --q.isBreadCrumb = isBreadCrumb | 199 --q.isBreadCrumb = isBreadCrumb |
201 q.completionText= GetQuestLogCompletionText(questIndex) | 200 q.completionText= GetQuestLogCompletionText(questIndex) |
202 q.numObjectives = GetNumQuestLeaderBoards(questIndex) | 201 q.numObjectives = GetNumQuestLeaderBoards(questIndex) |
203 q.objectives = {} | 202 q.objectives = {} |
204 for i = 1, q.numObjectives do | 203 for i = 1, q.numObjectives do |
288 | 287 |
289 q.selected = (questID == GetSuperTrackedQuestID()) -- call directly so artifact data doesn't become an issue | 288 q.selected = (questID == GetSuperTrackedQuestID()) -- call directly so artifact data doesn't become an issue |
290 self.WatchInfo[watchIndex] = q | 289 self.WatchInfo[watchIndex] = q |
291 self.LogInfo[questIndex] = q | 290 self.LogInfo[questIndex] = q |
292 print('- logIndex =', questIndex, 'title =', title) | 291 print('- logIndex =', questIndex, 'title =', title) |
292 for k,v in pairs(q) do | |
293 print('|cFFFFFF00'..k..'|r:', v) | |
294 end | |
293 return q | 295 return q |
294 end | 296 end |
295 | 297 |
296 Quest.GetClosest = function() | 298 Quest.GetClosest = function() |
297 local minID, minTitle | 299 local minID, minTitle |