Mercurial > wow > worldplan
comparison WorldQuests.lua @ 80:5d33e98710a0 v1.4.2
- Fixed pin transitions between world map and flight map.
| author | Nenue |
|---|---|
| date | Mon, 10 Apr 2017 16:44:33 -0400 |
| parents | fadf00b437fb |
| children | 26d736fbfe67 |
comparison
equal
deleted
inserted
replaced
| 79:9be69336c0b3 | 80:5d33e98710a0 |
|---|---|
| 580 print('UpdateQuestsForMap()', GetMapNameByID(mapID), GetMapNameByID(db.currentMapID), layoutDirty) | 580 print('UpdateQuestsForMap()', GetMapNameByID(mapID), GetMapNameByID(db.currentMapID), layoutDirty) |
| 581 for index, info in pairs(taskInfo) do | 581 for index, info in pairs(taskInfo) do |
| 582 | 582 |
| 583 local questID, x, y = info.questId, info.x, info.y | 583 local questID, x, y = info.questId, info.x, info.y |
| 584 local pin = self:AcquirePin(info) | 584 local pin = self:AcquirePin(info) |
| 585 | |
| 585 if pin then | 586 if pin then |
| 586 print(pin.title, pin.isStale) | 587 print(pin.title, pin.isStale) |
| 587 if pin:IsShown() and (layoutDirty or pin.isStale) then | 588 if pin:IsShown() and (layoutDirty or pin.isStale or (pin.owningFrame ~= WorldMapFrame)) then |
| 588 local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1] | 589 local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1] |
| 589 pin.owningFrame = WorldMapFrame | 590 pin.owningFrame = WorldMapFrame |
| 590 pin:SetAnchor(WorldMapPOIFrame, x, y, self.hostWidth, self.hostHeight, scaleFactor) | 591 pin:SetAnchor(WorldMapPOIFrame, x, y, self.hostWidth, self.hostHeight, scaleFactor) |
| 591 if pin.isStale then | 592 if pin.isStale then |
| 592 pin:Refresh('WORLDMAP_REFRESH ' .. GetTime()) | 593 pin:Refresh('WORLDMAP_REFRESH ' .. GetTime()) |
