diff 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
line wrap: on
line diff
--- a/QuestPOI.lua	Fri Nov 04 01:40:39 2016 -0400
+++ b/QuestPOI.lua	Fri Nov 04 02:47:17 2016 -0400
@@ -167,14 +167,16 @@
 end
 
 function WorldPlanPOIMixin:OnEnter()
-  if not WorldMapFrame:IsVisible() then
-    WorldMap_HijackTooltip(self)
+  if WorldMapFrame:IsVisible() then
+    WorldMapTooltip:SetOwner(self, 'ANCHOR_RIGHT')
+  else
+    WorldMap_HijackTooltip(self.owningFrame)
   end
 
   local completed = select(4,GetAchievementInfo(familiars_id))
   if not completed then
     if self.worldQuestType == LE_QUEST_TAG_TYPE_PET_BATTLE and familiars[self.questID] then
-      WorldMapTooltip:SetOwner(self, 'ANCHOR_RIGHT')
+
       WorldMapTooltip:AddLine(self.title, 1, 1, 1)
       if self.quality then
         local c = ITEM_QUALITY_COLORS[self.quality]