Handle MiniMapTrackingButton
Steven Mey [11-20-19 - 21:34]
Handle MiniMapTrackingButton
diff --git a/D2Minimap.lua b/D2Minimap.lua
index 8787920..85a4c17 100644
--- a/D2Minimap.lua
+++ b/D2Minimap.lua
@@ -1,3 +1,5 @@
+D2Minimap = true
+
local function D2Minimap_init(self, event, ...)
MinimapCluster:SetAlpha(0)
Minimap:SetAlpha(0.1)
@@ -12,8 +14,15 @@ local function D2Minimap_init(self, event, ...)
Minimap:SetZoom(5)
SetCVar("rotateMinimap", true)
+
+ MiniMapTrackingButton:ClearAllPoints()
+ MiniMapTrackingButton:SetParent(UIParent)
+ MiniMapTrackingButton:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 0, 0);
+ MiniMapTrackingButton:SetAlpha(0.1)
+ MiniMapTrackingButton:SetFrameStrata("BACKGROUND")
end
local D2MinimapFrame = CreateFrame("Frame", "D2MinimapFrame", UIParent, "SecureHandlerStateTemplate")
D2MinimapFrame:SetScript("OnEvent", D2Minimap_init)
D2MinimapFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
+