mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +00:00
710be52f35
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
35 lines
1.3 KiB
Lua
35 lines
1.3 KiB
Lua
pfUI:RegisterSkin("Battlefield Score", function ()
|
|
local rawborder, border = GetBorderSize()
|
|
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
|
|
|
|
StripTextures(WorldStateScoreFrame)
|
|
CreateBackdrop(WorldStateScoreFrame, nil, nil, .75)
|
|
CreateBackdropShadow(WorldStateScoreFrame)
|
|
|
|
WorldStateScoreFrame.backdrop:SetPoint("TOPLEFT", 10, -14)
|
|
WorldStateScoreFrame.backdrop:SetPoint("BOTTOMRIGHT", -112, 68)
|
|
WorldStateScoreFrame:SetHitRectInsets(10,112,14,68)
|
|
|
|
SkinCloseButton(WorldStateScoreFrameCloseButton, WorldStateScoreFrame.backdrop, -6, -6)
|
|
|
|
WorldStateScoreFrameLabel:ClearAllPoints()
|
|
WorldStateScoreFrameLabel:SetPoint("TOP", WorldStateScoreFrame.backdrop, "TOP", 0, -10)
|
|
|
|
StripTextures(WorldStateScoreScrollFrame)
|
|
SkinScrollbar(WorldStateScoreScrollFrameScrollBar)
|
|
|
|
WorldStateScoreFrameTab1:ClearAllPoints()
|
|
WorldStateScoreFrameTab1:SetPoint("TOPLEFT", WorldStateScoreFrame.backdrop, "BOTTOMLEFT", bpad, -(border + (border == 1 and 1 or 2)))
|
|
for i = 1, 3 do
|
|
local tab = _G["WorldStateScoreFrameTab"..i]
|
|
local lastTab = _G["WorldStateScoreFrameTab"..(i-1)]
|
|
if lastTab then
|
|
tab:ClearAllPoints()
|
|
tab:SetPoint("LEFT", lastTab, "RIGHT", border*2 + 1, 0)
|
|
end
|
|
SkinTab(tab)
|
|
end
|
|
|
|
SkinButton(WorldStateScoreFrameLeaveButton)
|
|
end)
|