Quantcast

Change some MinimapButtons

Steven Mey [11-28-19 - 17:35]
Change some MinimapButtons
Filename
D2Minimap.lua
diff --git a/D2Minimap.lua b/D2Minimap.lua
index 85a4c17..3ea4468 100644
--- a/D2Minimap.lua
+++ b/D2Minimap.lua
@@ -1,25 +1,68 @@
 D2Minimap = true

 local function D2Minimap_init(self, event, ...)
-    MinimapCluster:SetAlpha(0)
+    Minimap:ClearAllPoints()
+    Minimap:SetParent(UIParent)
     Minimap:SetAlpha(0.1)
     Minimap:SetFrameStrata("BACKGROUND")
     Minimap:SetPoint("CENTER", UIParent, "CENTER", 0, 0);
-    Minimap:SetHeight(800)
-    Minimap:SetWidth(800)
+    Minimap:SetHeight(1000)
+    Minimap:SetWidth(1000)
+    Minimap:SetScale(1.5)
     Minimap:SetScript("OnMouseDown", nil)
+
+    -- Remove Player-Arrow
     Minimap:SetPlayerTexture("")
+
+    -- Square the Map
+    Minimap:SetMaskTexture("Interface\\Buttons\\WHITE8X8")

     Minimap:EnableMouse(false)

     Minimap:SetZoom(5)
     SetCVar("rotateMinimap", true)
+
+    -- MinimapZoneTextButton and MinimapBorderTop
+    MinimapZoneTextButton:SetParent(UIParent)
+    MinimapZoneTextButton:SetPoint("TOP", UIParent, "TOP", 0, 0)
+    MinimapZoneTextButton:SetAlpha(.3)
+    MinimapBorderTop:SetParent(MinimapZoneTextButton)
+    MinimapBorderTop:ClearAllPoints()
+    MinimapBorderTop:SetPoint("TOP", MinimapZoneTextButton, "CENTER", 0, 15)

-    MiniMapTrackingButton:ClearAllPoints()
-    MiniMapTrackingButton:SetParent(UIParent)
-    MiniMapTrackingButton:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 0, 0);
-    MiniMapTrackingButton:SetAlpha(0.1)
-    MiniMapTrackingButton:SetFrameStrata("BACKGROUND")
+    -- TimeManagerClockButton
+    TimeManagerClockButton:SetParent(UIParent)
+    TimeManagerClockButton:SetPoint("TOP", MinimapZoneTextButton, "BOTTOM", 0, 3);
+    TimeManagerClockButton:SetAlpha(.3)
+
+    -- MiniMapWorldMapButton
+    MiniMapWorldMapButton:SetParent(MinimapZoneTextButton)
+    MiniMapWorldMapButton:ClearAllPoints()
+    MiniMapWorldMapButton:SetPoint("TOP", MinimapZoneTextButton, "RIGHT", 28, 15)
+    MiniMapWorldMapButton:SetAlpha(.8)
+
+    -- MiniMapTracking
+    MiniMapTracking:SetParent(UIParent)
+    MiniMapTracking:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 0, 0);
+    MiniMapTracking:SetAlpha(.2)
+
+    -- MinimapZoneTextButton:SetMovable(true)
+    -- MinimapZoneTextButton:EnableMouse(true)
+    -- MinimapZoneTextButton:RegisterForDrag("LeftButton")
+    -- MinimapZoneTextButton:SetScript("OnDragStart", MinimapZoneTextButton.StartMoving)
+    -- MinimapZoneTextButton:SetScript("OnDragStop", MinimapZoneTextButton.StopMovingOrSizing)
+
+    -- GarrisonLandingPageMinimapButton
+    GarrisonLandingPageMinimapButton:SetParent(UIParent)
+    GarrisonLandingPageMinimapButton:ClearAllPoints()
+    GarrisonLandingPageMinimapButton:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", 0, 0);
+    GarrisonLandingPageMinimapButton:SetAlpha(.3)
+    GarrisonLandingPageMinimapButton:SetFrameStrata("BACKGROUND")
+
+    MinimapBorder:Hide()
+    MinimapZoomIn:Hide()
+    MinimapZoomOut:Hide()
+    -- MinimapCluster:Hide()
 end

 local D2MinimapFrame = CreateFrame("Frame", "D2MinimapFrame", UIParent, "SecureHandlerStateTemplate")