Last active
July 3, 2021 01:31
-
-
Save kurapica/6efaca989dd4c5c3544d6f72a777dcc1 to your computer and use it in GitHub Desktop.
Minimap For Classic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scorpio "MinimmapPatch" "" | |
MinimapZoneTextButton:SetParent(Minimap) | |
MinimapZoneTextButton:ClearAllPoints() | |
MinimapZoneTextButton:SetPoint("BOTTOMLEFT", Minimap, "TOPLEFT", 0, 4) | |
MinimapZoneTextButton:SetPoint("BOTTOMRIGHT", Minimap, "TOPRIGHT", 0, 4) | |
MinimapZoneText:ClearAllPoints() | |
MinimapZoneText:SetAllPoints() | |
MinimapZoneText.JustifyH = "CENTER" | |
MinimapBorderTop:SetTexture(nil) | |
MiniMapWorldMapButton:Hide() | |
MinimapZoomIn:Hide() | |
MinimapZoomOut:Hide() | |
MinimapBorder:SetTexture(nil) | |
Minimap:SetMaskTexture("Interface\\Buttons\\WHITE8x8") | |
innerBorder = Frame("InnerBorder", Minimap) | |
outBorder = Frame("OutBorder", Minimap) | |
Style[innerBorder] = { | |
frameStrata = "LOW", | |
setAllPoints = true, | |
Backdrop = { | |
edgeFile = "Interface\\Buttons\\WHITE8x8", | |
edgeSize = 1, | |
}, | |
BackdropBorderColor = Color.PLAYER, | |
} | |
Style[outBorder] = { | |
frameStrata = "BACKGROUND", | |
Backdrop = { | |
edgeFile = "Interface\\Buttons\\WHITE8x8", | |
edgeSize = 1, | |
}, | |
BackdropBorderColor = Color.PLAYER, | |
} | |
outBorder:SetPoint("TOP", MinimapZoneTextButton, "TOP", 0, 4) | |
outBorder:SetPoint("BOTTOMLEFT", - 4, - 4) | |
outBorder:SetPoint("BOTTOMRIGHT", 4, - 4) | |
Next(function() | |
while true do | |
Delay(0.1) | |
if _G.TimeManagerClockButton then | |
Delay(0.1) | |
for _, f in pairs{TimeManagerClockButton:GetRegions()} do | |
if f:GetObjectType() == "Texture" then | |
f:Hide() | |
end | |
end | |
TimeManagerClockTicker:ClearAllPoints() | |
TimeManagerClockTicker:SetPoint("CENTER") | |
TimeManagerClockButton:SetSize(TimeManagerClockTicker:GetStringWidth() + 4, TimeManagerClockTicker:GetStringHeight() + 4) | |
TimeManagerClockButton:ClearAllPoints() | |
TimeManagerClockButton:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMRIGHT", 0, 4) | |
return | |
end | |
end | |
end) | |
Minimap:EnableMouseWheel(true) | |
Minimap:SetScript("OnMouseWheel", function(self, wheel) | |
local zoom = Minimap:GetZoom() | |
if wheel > 0 then | |
Minimap:SetZoom(zoom < 5 and (zoom + 1) or 5) | |
else | |
Minimap:SetZoom(zoom > 0 and (zoom - 1) or 0) | |
end | |
end) | |
NoCombat(function() | |
BuffFrame:ClearAllPoints() | |
BuffFrame:SetPoint("TOPRIGHT", - 4, - 4) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment