Mercurial > wow > worldplan
comparison WorldQuests.lua @ 84:a12f782571c5 v1.4.5
- Fixed more filter bar issues
| author | Nenue |
|---|---|
| date | Mon, 10 Apr 2017 17:50:06 -0400 |
| parents | 26d736fbfe67 |
| children | effb42f6fabd |
comparison
equal
deleted
inserted
replaced
| 83:a611cf505278 | 84:a12f782571c5 |
|---|---|
| 571 end | 571 end |
| 572 end | 572 end |
| 573 | 573 |
| 574 -- Updates quest markers in taskInfo while associating them with the given map | 574 -- Updates quest markers in taskInfo while associating them with the given map |
| 575 function Module:UpdateQuestsForMap(taskInfo, mapID) | 575 function Module:UpdateQuestsForMap(taskInfo, mapID) |
| 576 print('UpdateQuestsForMap()', GetMapNameByID(mapID), GetMapNameByID(db.currentMapID), layoutDirty) | 576 print('|cFF00FF00UpdateQuestsForMap()|r', GetMapNameByID(mapID), GetMapNameByID(db.currentMapID), layoutDirty) |
| 577 if db.QuestsByZone[mapID] then | 577 if db.QuestsByZone[mapID] then |
| 578 wipe(db.QuestsByZone[mapID]) | 578 wipe(db.QuestsByZone[mapID]) |
| 579 end | 579 end |
| 580 | 580 |
| 581 | 581 |
| 583 | 583 |
| 584 local questID, x, y = info.questId, info.x, info.y | 584 local questID, x, y = info.questId, info.x, info.y |
| 585 local pin = self:AcquirePin(info) | 585 local pin = self:AcquirePin(info) |
| 586 | 586 |
| 587 if pin then | 587 if pin then |
| 588 pin.used = true | |
| 588 print(pin.title, pin.isStale, layoutDirty, (pin.owningFrame ~= WorldMapFrame)) | 589 print(pin.title, pin.isStale, layoutDirty, (pin.owningFrame ~= WorldMapFrame)) |
| 589 if pin:IsShown() and (layoutDirty or pin.isStale or (pin.owningFrame ~= WorldMapFrame)) then | 590 if pin:IsShown() and (layoutDirty or pin.isStale or (pin.owningFrame ~= WorldMapFrame)) then |
| 590 local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1] | 591 local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1] |
| 591 pin.owningFrame = WorldMapFrame | 592 pin.owningFrame = WorldMapFrame |
| 592 pin:SetAnchor(WorldMapPOIFrame, x, y, self.hostWidth, self.hostHeight, scaleFactor) | 593 pin:SetAnchor(WorldMapPOIFrame, x, y, self.hostWidth, self.hostHeight, scaleFactor) |
