Mercurial > wow > worldplan
comparison FlightMap.lua @ 111:e8b6c5433128 v7.3.0-1
7.3 Updates
author | Nenue |
---|---|
date | Tue, 05 Sep 2017 02:58:24 -0400 |
parents | caa482329919 |
children | bf4a36378bb9 |
comparison
equal
deleted
inserted
replaced
110:f6ef9a9f5476 | 111:e8b6c5433128 |
---|---|
80 print(unpack(db.Config.FlightMapAlphaLimits)) | 80 print(unpack(db.Config.FlightMapAlphaLimits)) |
81 local alpha1, alpha2, alpha3 = unpack(db.Config.FlightMapAlphaLimits) | 81 local alpha1, alpha2, alpha3 = unpack(db.Config.FlightMapAlphaLimits) |
82 local scale1, scale2, scale3 = unpack(db.Config.FlightMapScalingLimits) | 82 local scale1, scale2, scale3 = unpack(db.Config.FlightMapScalingLimits) |
83 | 83 |
84 local mapAreaID = self:GetMap():GetMapID(); | 84 local mapAreaID = self:GetMap():GetMapID(); |
85 print(mapAreaID) | |
85 WorldPlanQuests.isStale = true | 86 WorldPlanQuests.isStale = true |
86 for zoneIndex = 1, C_MapCanvas.GetNumZones(mapAreaID) do | 87 for zoneIndex = 1, C_MapCanvas.GetNumZones(mapAreaID) do |
87 local zoneMapID, zoneName, zoneDepth, left, right, top, bottom = C_MapCanvas.GetZoneInfo(mapAreaID, zoneIndex); | 88 local zoneMapID, zoneName, zoneDepth, left, right, top, bottom = C_MapCanvas.GetZoneInfo(mapAreaID, zoneIndex); |
88 print(zoneMapID, zoneName) | 89 print(zoneMapID, zoneName, self:GetTransformFlags()) |
89 if zoneDepth <= 1 then -- Exclude subzones | 90 if zoneDepth <= 1 then -- Exclude subzones |
90 local taskInfo = C_TaskQuest.GetQuestsForPlayerByMapID(zoneMapID, mapAreaID); | 91 local taskInfo = C_TaskQuest.GetQuestsForPlayerByMapID(zoneMapID, mapAreaID, self:GetTransformFlags()); |
91 | 92 |
92 if taskInfo then | 93 if taskInfo then |
93 for i, info in ipairs(taskInfo) do | 94 for i, info in ipairs(taskInfo) do |
94 if HaveQuestData(info.questId) then | 95 if HaveQuestData(info.questId) then |
95 if QuestUtils_IsQuestWorldQuest(info.questId) then | 96 if QuestUtils_IsQuestWorldQuest(info.questId) then |
96 local pin = WorldPlanQuests:AcquirePin(info, zoneMapID) | 97 local pin = WorldPlanQuests:AcquirePin(info, zoneMapID) |
97 if pin then | 98 if pin then |
98 | 99 |
99 print(pin:GetID(), pin.used, pin.filtered) | 100 --print(pin:GetID(), pin.used, pin.filtered) |
100 | 101 |
101 if pin.canShow then | 102 if pin.canShow then |
102 pinsToRemove[info.questId] = nil; | 103 pinsToRemove[info.questId] = nil; |
103 | 104 |
104 pin.used = true | 105 pin.used = true |