diff FlightMap.lua @ 67:96183f981acb

Update for Legion Patch 7.2 - Pins for quests detected from the flight map should properly update as needed. - Fixed dropdown menu configurations not getting applied. - Added a toggle button to the world map display that performs the same function as the 'Enable' option in the dropdown menu. - Rewrote the majority of display update handlers for a significant performance improvements while interacting with the world map. - AP token info should now reflect artifact knowledge changes.
author Nenue
date Sat, 01 Apr 2017 08:17:30 -0400
parents 0749e38081e7
children 6db0b9696936
line wrap: on
line diff
--- a/FlightMap.lua	Thu Mar 30 02:32:44 2017 -0400
+++ b/FlightMap.lua	Sat Apr 01 08:17:30 2017 -0400
@@ -114,10 +114,13 @@
                 frame.pin = pin
 
                 -- sticking it onto the MapCanvas pin
+                pin:SetAnchor(frame, nil, nil, nil, nil, pin.filtered and 0.5 or 1)
                 pin.owningFrame = frame:GetMap()
                 pin.throttle = 1
                 pin.isStale = true
-                pin:SetAnchor(frame)
+
+                pin:ClearAllPoints()
+                pin:SetPoint('CENTER', frame, 'CENTER')
                 --print(pin.Overlay:IsShown(), pin.Overlay:GetPoint(1))
               end
               pin:SetShown(pin.used)