# HG changeset patch # User Nenue # Date 1501000707 14400 # Node ID f6ef9a9f5476fda6d0c17fa453578efd13f7c375 # Parent caa482329919ead6c567cc6544bd57899e23f238 nop out `WorldMap_SetupWorldQuestButton` since we aren't using them visually diff -r caa482329919 -r f6ef9a9f5476 QuestPOI.lua --- 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 diff -r caa482329919 -r f6ef9a9f5476 WorldMap.lua --- 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 diff -r caa482329919 -r f6ef9a9f5476 WorldPlan.lua --- 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() diff -r caa482329919 -r f6ef9a9f5476 WorldPlan.toc --- a/WorldPlan.toc Mon Jul 10 18:34:11 2017 -0400 +++ b/WorldPlan.toc Tue Jul 25 12:38:27 2017 -0400 @@ -10,6 +10,7 @@ ## OptionalDeps: Veneer WorldPlan.xml +##Data.xml QuestPOI.xml WorldMap.xml FilterBar.xml