Created
June 28, 2021 14:06
-
-
Save kurapica/ecf1d684f92c310093317de9b9b25099 to your computer and use it in GitHub Desktop.
Minimap Patch For WOW
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) | |
MiniMapTracking:Show() | |
MiniMapTrackingBackground:Hide() | |
MiniMapTrackingIconOverlay:Hide() | |
MiniMapTrackingButtonBorder:Hide() | |
MiniMapTracking:ClearAllPoints() | |
MiniMapTracking:SetParent(Minimap) | |
MiniMapTracking:SetPoint("TOPLEFT", Minimap, "TOPLEFT") | |
MiniMapTracking:SetFrameStrata("LOW") | |
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) | |
-- GameTimeFrame | |
GameTimeFrame:GetNormalTexture():SetTexture(nil) | |
GameTimeFrame:GetPushedTexture():SetTexture(nil) | |
GameTimeFrame:GetHighlightTexture():SetTexture(nil) | |
GameTimeFrame:SetNormalFontObject(TextStatusBarTextLarge) | |
GameTimeFrame:ClearAllPoints() | |
GameTimeFrame:SetPoint("TOPRIGHT") | |
GameTimeFrame:SetSize(30, 30) | |
-- GarrisonLandingPageMinimapButton | |
GarrisonLandingPageMinimapButton:ClearAllPoints() | |
GarrisonLandingPageMinimapButton:SetPoint("CENTER", Minimap, "BOTTOMLEFT") | |
GarrisonLandingPageMinimapButton:HookScript("OnShow", function(self) | |
GarrisonLandingPageMinimapButton:ClearAllPoints() | |
GarrisonLandingPageMinimapButton:SetPoint("CENTER", Minimap, "BOTTOMLEFT") | |
end) | |
-- MiniMapInstanceDifficulty | |
MiniMapInstanceDifficulty:SetParent(Minimap) | |
MiniMapInstanceDifficulty:ClearAllPoints() | |
MiniMapInstanceDifficulty:SetPoint("TOPLEFT", Minimap, "TOPLEFT", - 6, 4) | |
MiniMapInstanceDifficulty:SetFrameStrata("MEDIUM") | |
-- GuildInstanceDifficulty | |
GuildInstanceDifficulty:SetParent(Minimap) | |
GuildInstanceDifficulty:ClearAllPoints() | |
GuildInstanceDifficulty:SetPoint("TOPLEFT", Minimap, "TOPLEFT", - 6, 4) | |
GuildInstanceDifficulty:SetFrameStrata("MEDIUM") | |
-- MiniMapChallengeMode | |
MiniMapChallengeMode:ClearAllPoints() | |
MiniMapChallengeMode:SetPoint("TOPLEFT", Minimap, "TOPLEFT", 0, 0) | |
MiniMapChallengeMode:SetFrameStrata("MEDIUM") | |
-- QueueStatusMinimapButton | |
QueueStatusMinimapButton:ClearAllPoints() | |
QueueStatusMinimapButton:SetPoint("CENTER", Minimap, "BOTTOMLEFT", 0, 30) | |
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