Mercurial > wow > worldplan
changeset 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 |
files | QuestPOI.lua WorldMap.lua WorldPlan.lua WorldPlan.toc |
diffstat | 4 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/QuestPOI.lua Mon Jul 10 18:34:11 2017 -0400 +++ b/QuestPOI.lua Tue Jul 25 12:38:27 2017 -0400 @@ -26,6 +26,8 @@ local HaveQuestRewardData = HaveQuestRewardData local GetTime = GetTime +local totalPins = 0 +local completedQuests = {} local pairs, ipairs, tinsert, tremove, unpack, select = pairs, ipairs, tinsert, tremove, unpack, select local floor, mod, tostring, tonumber, GetSuperTrackedQuestID = floor, mod, tostring, tonumber, GetSuperTrackedQuestID @@ -320,15 +322,20 @@ return end - self:RegisterEvent('QUEST_TURNED_IN') self:RegisterEvent('QUEST_LOG_UPDATE') + --self:RegisterEvent('WORLD_MAP_UPDATE') self:HideOrShowFrames(true) end function QuestPOI:OnEvent(event, questID) + print(self:GetID()..':OnEvent()', event, questID) if (self.questID == questID) and IsQuestComplete(self.questID) then db.log(event .. ' for ' .. self:GetName().. ' triggered.') self:Release() + return + end + if event == 'WORLD_MAP_UPDATE' then + self.coordsDirty = true end end
--- a/WorldMap.lua Mon Jul 10 18:34:11 2017 -0400 +++ b/WorldMap.lua Tue Jul 25 12:38:27 2017 -0400 @@ -139,6 +139,7 @@ elseif event == 'WORLD_QUEST_COMPLETED_BY_SPELL' then local questID = ... if questID and db.QuestsByID[questID] then + -- client-side quest completion status isn't updated until the next event stack completedQuests[questID] = true db.QuestsByID[questID]:Release() end
--- a/WorldPlan.lua Mon Jul 10 18:34:11 2017 -0400 +++ b/WorldPlan.lua Tue Jul 25 12:38:27 2017 -0400 @@ -12,6 +12,7 @@ local GetCurrentMapAreaID = GetCurrentMapAreaID local GetTime, IsLoggedIn = GetTime, IsLoggedIn local DEBUG_HISTORY = {} +local ofunc = {} -- Define tables here so the pointers match up WorldPlanCore = { defaults = {}, modules = {}, TaskQueue = {}, } @@ -399,6 +400,10 @@ self:RegisterEvent("ADDON_LOADED") self:RegisterEvent("PLAYER_LOGIN") --self:SetParent(WorldMapFrame) + + + ofunc[WorldMap_SetupWorldQuestButton] = WorldMap_SetupWorldQuestButton + WorldMap_SetupWorldQuestButton = nop end function WorldPlanCore:OnShow()