comparison QuestPOI.lua @ 37:78cf1f19856a

WorldPlan: - Quest pins are now placed on the flight map. Their visibility rules will mirror the filter options from the world map. - Filter controls polish: - First click negates other reward type filters. Subsequent clicks will then toggle individual reward types until the filters are reset via Right-click. - Adheres to the Blizzard CVars added in patch 7.1 - Numerous optimizations to how data and visual updates are handled; should see an even better load time, and snappier world map interaction. ClassPlan: - The 'Available Missions' list is now recorded. It can be reviewed by clicking on the mission list heading. - Information filtering by character and realm.
author Nenue
date Fri, 04 Nov 2016 02:47:17 -0400
parents 21bcff08b0f4
children 589c444d4837
comparison
equal deleted inserted replaced
36:21bcff08b0f4 37:78cf1f19856a
165 end 165 end
166 return 128, icon, quantity, name, itemID, quality 166 return 128, icon, quantity, name, itemID, quality
167 end 167 end
168 168
169 function WorldPlanPOIMixin:OnEnter() 169 function WorldPlanPOIMixin:OnEnter()
170 if not WorldMapFrame:IsVisible() then 170 if WorldMapFrame:IsVisible() then
171 WorldMap_HijackTooltip(self) 171 WorldMapTooltip:SetOwner(self, 'ANCHOR_RIGHT')
172 else
173 WorldMap_HijackTooltip(self.owningFrame)
172 end 174 end
173 175
174 local completed = select(4,GetAchievementInfo(familiars_id)) 176 local completed = select(4,GetAchievementInfo(familiars_id))
175 if not completed then 177 if not completed then
176 if self.worldQuestType == LE_QUEST_TAG_TYPE_PET_BATTLE and familiars[self.questID] then 178 if self.worldQuestType == LE_QUEST_TAG_TYPE_PET_BATTLE and familiars[self.questID] then
177 WorldMapTooltip:SetOwner(self, 'ANCHOR_RIGHT') 179
178 WorldMapTooltip:AddLine(self.title, 1, 1, 1) 180 WorldMapTooltip:AddLine(self.title, 1, 1, 1)
179 if self.quality then 181 if self.quality then
180 local c = ITEM_QUALITY_COLORS[self.quality] 182 local c = ITEM_QUALITY_COLORS[self.quality]
181 WorldMapTooltip:AddLine(" ") 183 WorldMapTooltip:AddLine(" ")
182 WorldMapTooltip:AddLine('Rewards') 184 WorldMapTooltip:AddLine('Rewards')