Mercurial > wow > worldplan
comparison QuestPOI.lua @ 110:f6ef9a9f5476
nop out `WorldMap_SetupWorldQuestButton` since we aren't using them visually
author | Nenue |
---|---|
date | Tue, 25 Jul 2017 12:38:27 -0400 |
parents | caa482329919 |
children | e8b6c5433128 |
comparison
equal
deleted
inserted
replaced
109:caa482329919 | 110:f6ef9a9f5476 |
---|---|
24 local SpellCanTargetQuest, GetCVarBool = SpellCanTargetQuest, GetCVarBool | 24 local SpellCanTargetQuest, GetCVarBool = SpellCanTargetQuest, GetCVarBool |
25 local SetSuperTrackedQuestID = SetSuperTrackedQuestID | 25 local SetSuperTrackedQuestID = SetSuperTrackedQuestID |
26 local HaveQuestRewardData = HaveQuestRewardData | 26 local HaveQuestRewardData = HaveQuestRewardData |
27 local GetTime = GetTime | 27 local GetTime = GetTime |
28 | 28 |
29 local totalPins = 0 | |
30 local completedQuests = {} | |
29 | 31 |
30 local pairs, ipairs, tinsert, tremove, unpack, select = pairs, ipairs, tinsert, tremove, unpack, select | 32 local pairs, ipairs, tinsert, tremove, unpack, select = pairs, ipairs, tinsert, tremove, unpack, select |
31 local floor, mod, tostring, tonumber, GetSuperTrackedQuestID = floor, mod, tostring, tonumber, GetSuperTrackedQuestID | 33 local floor, mod, tostring, tonumber, GetSuperTrackedQuestID = floor, mod, tostring, tonumber, GetSuperTrackedQuestID |
32 local GameTooltip = GameTooltip | 34 local GameTooltip = GameTooltip |
33 local GetItemIcon = GetItemIcon | 35 local GetItemIcon = GetItemIcon |
318 if self.questID and IsQuestComplete(self.questID) then | 320 if self.questID and IsQuestComplete(self.questID) then |
319 self:Release() | 321 self:Release() |
320 return | 322 return |
321 end | 323 end |
322 | 324 |
323 self:RegisterEvent('QUEST_TURNED_IN') | |
324 self:RegisterEvent('QUEST_LOG_UPDATE') | 325 self:RegisterEvent('QUEST_LOG_UPDATE') |
326 --self:RegisterEvent('WORLD_MAP_UPDATE') | |
325 self:HideOrShowFrames(true) | 327 self:HideOrShowFrames(true) |
326 end | 328 end |
327 | 329 |
328 function QuestPOI:OnEvent(event, questID) | 330 function QuestPOI:OnEvent(event, questID) |
331 print(self:GetID()..':OnEvent()', event, questID) | |
329 if (self.questID == questID) and IsQuestComplete(self.questID) then | 332 if (self.questID == questID) and IsQuestComplete(self.questID) then |
330 db.log(event .. ' for ' .. self:GetName().. ' triggered.') | 333 db.log(event .. ' for ' .. self:GetName().. ' triggered.') |
331 self:Release() | 334 self:Release() |
335 return | |
336 end | |
337 if event == 'WORLD_MAP_UPDATE' then | |
338 self.coordsDirty = true | |
332 end | 339 end |
333 end | 340 end |
334 | 341 |
335 function QuestPOI:OnHide() | 342 function QuestPOI:OnHide() |
336 --DEFAULT_CHAT_FRAME:AddMessage('|cFFFFFF00'..self:GetName()..'|r:OnHide()') | 343 --DEFAULT_CHAT_FRAME:AddMessage('|cFFFFFF00'..self:GetName()..'|r:OnHide()') |