Mercurial > wow > worldplan
diff WorldPlan.lua @ 75:78d78dc77822
update conditional tweaks
author | Nenue |
---|---|
date | Mon, 10 Apr 2017 07:13:29 -0400 |
parents | 6db0b9696936 |
children | 98b5e08b75ed |
line wrap: on
line diff
--- a/WorldPlan.lua Sat Apr 08 17:07:58 2017 -0400 +++ b/WorldPlan.lua Mon Apr 10 07:13:29 2017 -0400 @@ -32,6 +32,8 @@ db.UsedPins = {} db.UpdatedPins = {} db.ReportChunks = {} +db.Bounties = {} +db.BountiesByQuestID = {} db.BountiesByFactionID = {} -- default color templates @@ -356,7 +358,12 @@ end end local isMapOpen = WorldMapFrame:IsShown() - local isNewMap = isMapOpen and ((mapAreaID ~= db.currentMapID) or (isMapOpen ~= db.isMapOpen) or (db.isMicroDungeon ~= isMicroDungeon)) + if not isMapOpen then + return + end + + local isNewMap = (mapAreaID ~= db.currentMapID) or (isMapOpen ~= db.isMapOpen) or (db.isMicroDungeon ~= isMicroDungeon) + db.isMicroDungeon = isMicroDungeon db.isMapOpen = isMapOpen @@ -367,6 +374,9 @@ for _, module in ipairs(db.OrderedModules) do if module.OnMapInfo then + if module.Debug then + module:Debug(event) + end print(' |cFF00FFFF'..module:GetName() .. ':OnMapInfo()|r') module:OnMapInfo(isBrokenIsle, isContinent, mapAreaID, isNewMap, isMapOpen) end @@ -386,7 +396,7 @@ print('|cFFFF4400currentMapID =', db.currentMapID, ...) - self:SetCurrentMap(event) + self:SetCurrentMap(event .. ' ' .. GetTime()) end end end @@ -639,7 +649,7 @@ for i, module in ipairs(db.OrderedModules) do if module.Refresh then print('|cFF00FF00external '..module:GetName()..':Refresh()|r') - module:Refresh(forced) + module:Refresh('WORLDPLAN_REFRESH') end end