Mercurial > wow > worldplan
comparison WorldQuests.lua @ 95:b29b35cb8539
- 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
- ClassOrderPlan can be closed with the game menu button
| author | Nenue |
|---|---|
| date | Mon, 08 May 2017 22:38:52 -0400 |
| parents | 98b5e08b75ed |
| children | 8591401ec278 |
comparison
equal
deleted
inserted
replaced
| 94:dfd53f7c0fe5 | 95:b29b35cb8539 |
|---|---|
| 396 | 396 |
| 397 for index, pin in pairs(db.QuestsByID) do | 397 for index, pin in pairs(db.QuestsByID) do |
| 398 pin.used = nil | 398 pin.used = nil |
| 399 end | 399 end |
| 400 | 400 |
| 401 self:UpdateAnchors() | 401 self:UpdateAnchors(...) |
| 402 --[[ | 402 --[[ |
| 403 if bountiesDirty then | 403 if bountiesDirty then |
| 404 --print(' bounties dirty, pushing that') | 404 --print(' bounties dirty, pushing that') |
| 405 self:UpdateBounties() | 405 self:UpdateBounties() |
| 406 end | 406 end |
| 456 | 456 |
| 457 if WorldPlanSummary then | 457 if WorldPlanSummary then |
| 458 WorldPlanSummary.isStale = true | 458 WorldPlanSummary.isStale = true |
| 459 end | 459 end |
| 460 | 460 |
| 461 WorldPlan.dataFlush = true | |
| 462 end | 461 end |
| 463 | 462 |
| 464 function Module:RefreshIfChanged(event) | 463 function Module:RefreshIfChanged(event) |
| 465 local scaleCheck = WorldMapDetailFrame:GetScale() | 464 local scaleCheck = WorldMapDetailFrame:GetScale() |
| 466 refreshReason = nil | 465 refreshReason = nil |
| 493 --rprint('|cFF00FF00filter', pin.questID, pin.filtered, 'used:', pin.used) | 492 --rprint('|cFF00FF00filter', pin.questID, pin.filtered, 'used:', pin.used) |
| 494 end | 493 end |
| 495 end | 494 end |
| 496 | 495 |
| 497 -- Walks the current map tree and fires updates as needed | 496 -- Walks the current map tree and fires updates as needed |
| 498 function Module:UpdateAnchors () | 497 function Module:UpdateAnchors (event) |
| 499 wipe(self.UsedPositions) | 498 wipe(self.UsedPositions) |
| 500 print(' |cFF00FF00'..self:GetName()..':UpdateAnchors()') | |
| 501 local hostWidth, hostHeight = WorldMapPOIFrame:GetSize() | 499 local hostWidth, hostHeight = WorldMapPOIFrame:GetSize() |
| 502 | 500 |
| 503 if (hostWidth ~= self.hostWidth) or (hostHeight ~= self.hostHeight) then | 501 if (hostWidth ~= self.hostWidth) or (hostHeight ~= self.hostHeight) then |
| 504 self.hostWidth, self.hostHeight = hostWidth, hostHeight | 502 self.hostWidth, self.hostHeight = hostWidth, hostHeight |
| 505 layoutDirty = true | 503 layoutDirty = true |
| 506 end | 504 end |
| 507 | 505 |
| 508 --rprint('|cFF00FF00'..self:GetName()..':UpdateAnchors()') | 506 print('|cFF00FF00UpdateAnchors()', event) |
| 509 local mapFileName, textureHeight, textureWidth, isMicroDungeon, microDungeonMapName = GetMapInfo() | 507 local mapFileName, textureHeight, textureWidth, isMicroDungeon, microDungeonMapName = GetMapInfo() |
| 510 if isMicroDungeon then | 508 if isMicroDungeon then |
| 511 return | 509 return |
| 512 end | 510 end |
| 513 | 511 |
