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
32 lines
932 B
Lua
32 lines
932 B
Lua
pfUI:RegisterSkin("Popup Dialogs", function ()
|
|
for i = 1, STATICPOPUP_NUMDIALOGS do
|
|
-- Compatibility
|
|
local money = _G["StaticPopup"..i.."MoneyInputFrame"]
|
|
if money then -- tbc
|
|
SkinMoneyInputFrame(money)
|
|
end
|
|
|
|
|
|
local dialog = _G["StaticPopup"..i]
|
|
CreateBackdrop(dialog, nil, true, .75)
|
|
CreateBackdropShadow(dialog)
|
|
|
|
SkinCloseButton(_G[dialog:GetName().."CloseButton"], dialog, -6, -6)
|
|
|
|
SkinButton(_G[dialog:GetName().."Button1"])
|
|
SkinButton(_G[dialog:GetName().."Button2"])
|
|
|
|
local editbox = _G[dialog:GetName().."EditBox"]
|
|
editbox:DisableDrawLayer("BACKGROUND")
|
|
CreateBackdrop(editbox)
|
|
editbox:SetHeight(18)
|
|
|
|
local wide_editbox = _G[dialog:GetName().."WideEditBox"]
|
|
wide_editbox:DisableDrawLayer("BACKGROUND")
|
|
CreateBackdrop(wide_editbox)
|
|
wide_editbox:SetHeight(18)
|
|
wide_editbox:ClearAllPoints()
|
|
wide_editbox:SetPoint("BOTTOM", 0, 45)
|
|
end
|
|
end)
|