Mercurial > wow > worldplan
comparison WorldPlan.lua @ 93:98b5e08b75ed v1.4.9
- Fixed quest completion checking and handling
- Changed animation method to hopefully stop weird flickering.
- Pins are now visible before full reward data is loaded
- Filter bar redesigned:
- aligned horizontally along the top of the map display
- filter buttons display a '+' when there are matches in both current and other zones, and '*' when there only matches in other zones
- button tooltips separate local and global quests
- button categories are highlighted and labeled when the cursor is over them
- Fixed invalid POI targets appearing when the spell targeting cursor is active
author | Nenue |
---|---|
date | Sat, 15 Apr 2017 11:04:54 -0400 |
parents | 78d78dc77822 |
children | b29b35cb8539 |
comparison
equal
deleted
inserted
replaced
92:df725cba1a6a | 93:98b5e08b75ed |
---|---|
261 | 261 |
262 if frame.defaults then | 262 if frame.defaults then |
263 db.DefaultConfig[frame:GetName()] = frame.defaults | 263 db.DefaultConfig[frame:GetName()] = frame.defaults |
264 end | 264 end |
265 | 265 |
266 frame.GetTypeInfo = function(frame, typeID) | |
267 return self:GetTypeInfo(frame, typeID) | |
268 end | |
269 | |
270 frame.owningFrame = self | 266 frame.owningFrame = self |
271 else | 267 else |
272 | 268 |
273 print('|cFFFF4400'..self:GetName()..':AddHandler()', frame:GetName()) | 269 print('|cFFFF4400'..self:GetName()..':AddHandler()', frame:GetName()) |
274 end | 270 end |
349 print('SetCurrentMap()', event, mapAreaID) | 345 print('SetCurrentMap()', event, mapAreaID) |
350 local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID] | 346 local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID] |
351 | 347 |
352 local mapFileName, textureHeight, textureWidth, isMicroDungeon, microDungeonMapName = GetMapInfo() | 348 local mapFileName, textureHeight, textureWidth, isMicroDungeon, microDungeonMapName = GetMapInfo() |
353 | 349 |
354 | |
355 if db.isContinentMap ~= isContinent then | |
356 for _, pin in pairs(db.QuestsByID) do | |
357 pin.isStale = true | |
358 end | |
359 end | |
360 local isMapOpen = WorldMapFrame:IsShown() | 350 local isMapOpen = WorldMapFrame:IsShown() |
361 if not isMapOpen then | 351 local isNewMap = (mapAreaID ~= db.currentMapID) or (isMapOpen ~= db.isMapOpen) or (db.isMicroDungeon ~= isMicroDungeon) or (db.isContinentMap ~= isContinent) |
362 return | |
363 end | |
364 | |
365 local isNewMap = (mapAreaID ~= db.currentMapID) or (isMapOpen ~= db.isMapOpen) or (db.isMicroDungeon ~= isMicroDungeon) | |
366 | |
367 | 352 |
368 db.isMicroDungeon = isMicroDungeon | 353 db.isMicroDungeon = isMicroDungeon |
369 db.isMapOpen = isMapOpen | 354 db.isMapOpen = isMapOpen |
370 db.currentMapID = mapAreaID | 355 db.currentMapID = mapAreaID |
371 db.isContinentMap = isContinent | 356 db.isContinentMap = isContinent |
372 db.isBrokenIsle = isBrokenIsle | 357 db.isBrokenIsle = isBrokenIsle |
373 db.useContinentType = (WorldMapDetailFrame:GetScale() < 1) | |
374 | 358 |
375 for _, module in ipairs(db.OrderedModules) do | 359 for _, module in ipairs(db.OrderedModules) do |
376 if module.OnMapInfo then | 360 if module.OnMapInfo then |
377 if module.Debug then | 361 if module.Debug then |
378 module:Debug(event) | 362 module:Debug(event) |
392 self:Setup() | 376 self:Setup() |
393 end | 377 end |
394 else | 378 else |
395 if (event == 'WORLD_MAP_UPDATE') or (event == 'PLAYER_ENTERING_WORLD') or (event == 'PLAYER_LOGIN') then | 379 if (event == 'WORLD_MAP_UPDATE') or (event == 'PLAYER_ENTERING_WORLD') or (event == 'PLAYER_LOGIN') then |
396 print('|cFFFF4400currentMapID =', db.currentMapID, ...) | 380 print('|cFFFF4400currentMapID =', db.currentMapID, ...) |
381 if event == 'PLAYER_ENTERING_WORLD' then | |
382 -- start from scratch | |
383 db.isMicroDungeon = nil | |
384 db.isMapOpen = nil | |
385 db.currentMapID = nil | |
386 db.isContinentMap = nil | |
387 db.isBrokenIsle = nil | |
388 end | |
397 | 389 |
398 | 390 |
399 self:SetCurrentMap(event .. ' ' .. GetTime()) | 391 self:SetCurrentMap(event .. ' ' .. GetTime()) |
400 end | 392 end |
401 end | 393 end |