mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
Drop the now-vestigial expansion plumbing.
- Delete modules/thirdparty-tbc.lua + its xml Include
- Strip 10 tbc-tagged CreateConfig calls in modules/gui.lua
- Drop the expansion arg from CreateConfig() signature + the disabled-
entry rendering path that depended on it
- Drop the showdisabled GUI toggle + its default
- Simplify pfUI:RegisterModule / pfUI:RegisterSkin to (name, func) only
- Strip the leading version arg ("vanilla:tbc", etc.) from all 114
Register call sites
- Delete the pfUI.expansion variable
28 lines
899 B
Lua
28 lines
899 B
Lua
pfUI:RegisterSkin("Battlefield Minimap", function ()
|
|
local rawborder, border = GetBorderSize()
|
|
|
|
HookAddonOrVariable("Blizzard_BattlefieldMinimap", function()
|
|
StripTextures(BattlefieldMinimap)
|
|
CreateBackdrop(BattlefieldMinimap, nil, nil, 0)
|
|
CreateBackdropShadow(BattlefieldMinimap)
|
|
|
|
BattlefieldMinimap:SetWidth(220)
|
|
BattlefieldMinimap:SetHeight(146)
|
|
|
|
SkinCloseButton(BattlefieldMinimapCloseButton, BattlefieldMinimap, 0, 0)
|
|
|
|
SkinTab(BattlefieldMinimapTab)
|
|
BattlefieldMinimapTabText:ClearAllPoints()
|
|
BattlefieldMinimapTabText:SetPoint("CENTER", 0, 0)
|
|
|
|
HookScript(BattlefieldMinimap, "OnShow", function()
|
|
BattlefieldMinimapTab:Hide()
|
|
end)
|
|
|
|
hooksecurefunc("BattlefieldMinimap_ShowOpacity", function()
|
|
OpacityFrame:ClearAllPoints()
|
|
OpacityFrame:SetPoint("TOPRIGHT", "BattlefieldMinimap", "TOPLEFT", -2*border, 0)
|
|
end)
|
|
end)
|
|
end)
|