comparison WorldPlan.lua @ 54:b289eb3e6a32

- Fix stray pin text arising from pins that are never shown.
author Nenue
date Sat, 31 Dec 2016 17:31:39 -0500
parents dbd81d49af02
children 0749e38081e7
comparison
equal deleted inserted replaced
53:44baf4f35c7c 54:b289eb3e6a32
72 showNumber = false, 72 showNumber = false,
73 alpha = 0.1, 73 alpha = 0.1,
74 } 74 }
75 } 75 }
76 76
77
77 db.DefaultConfig = { 78 db.DefaultConfig = {
78 ShowAllProfessionQuests = false, 79 ShowAllProfessionQuests = false,
79 DisplayContinentSummary = true, 80 DisplayContinentSummary = true,
80 DisplayContinentPins = true, 81 DisplayContinentPins = true,
81 NotifyWhenNewQuests = true, 82 NotifyWhenNewQuests = true,
82 EnablePins = true, 83 EnablePins = true,
83 FadeWhileGrouped = false, 84 FadeWhileGrouped = false,
84 FlightMapAlphaLimits = {1, 1, 1}, 85 FlightMapAlphaLimits = {1, 1, 1},
85 FlightMapScalingLimits = {1, 3, 1.5}, 86 FlightMapScalingLimits = {1, 3, 1.5},
87 --UntrackedColor = {},
88 --TrackedColor = {},
89 --CriteriaColor = {},
90 --RewardColorGold = {},
91 --RewardColorReagent = {},
92 --RewardColorArtifactPower = {},
93 --RewardColorCurrency = {},
86 } 94 }
87 95
88 96
89 97
90 -- tracking menu toggler 98 -- tracking menu toggler
279 287
280 function WorldPlanCore:SetCurrentMap() 288 function WorldPlanCore:SetCurrentMap()
281 local mapAreaID = GetCurrentMapAreaID() 289 local mapAreaID = GetCurrentMapAreaID()
282 local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID] 290 local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID]
283 291
284 292 local isContinent = (mapAreaID == BROKEN_ISLES_ID)
285 db.currentMapID = mapAreaID 293 db.currentMapID = mapAreaID
286 db.isContinentMap = (mapAreaID == BROKEN_ISLES_ID) 294 db.isContinentMap = isContinent
287 db.useContinentType = (WorldMapDetailFrame:GetScale() < 1) 295 db.useContinentType = (WorldMapDetailFrame:GetScale() < 1)
288 296
289 for _, module in ipairs(db.OrderedModules) do 297 for _, module in ipairs(db.OrderedModules) do
290 if module.OnMapInfo then 298 if module.OnMapInfo then
291 print(' |cFF00FFFF'..module:GetName() .. ':OnMapInfo()|r') 299 print(' |cFF00FFFF'..module:GetName() .. ':OnMapInfo()|r')
292 module:OnMapInfo(isBrokenIsle, mapAreaID) 300 module:OnMapInfo(isBrokenIsle, isContinent, mapAreaID)
293 end 301 end
294 end 302 end
295 end 303 end
296 304
297 305