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
33 lines
1.2 KiB
Lua
33 lines
1.2 KiB
Lua
pfUI:RegisterSkin("Dress Up Frame", function ()
|
|
local rawborder, border = GetBorderSize()
|
|
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
|
|
|
|
StripTextures(DressUpFrame, nil, "ARTWORK")
|
|
CreateBackdrop(DressUpFrame, nil, nil, .75)
|
|
CreateBackdropShadow(DressUpFrame)
|
|
|
|
DressUpFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
|
|
DressUpFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72)
|
|
DressUpFrame:SetHitRectInsets(10,32,10,72)
|
|
EnableMovable(DressUpFrame)
|
|
|
|
SkinCloseButton(DressUpFrameCloseButton, DressUpFrame.backdrop, -6, -6)
|
|
|
|
DressUpFrame:DisableDrawLayer("BACKGROUND")
|
|
|
|
DressUpFrameTitleText:ClearAllPoints()
|
|
DressUpFrameTitleText:SetPoint("TOP", DressUpFrame.backdrop, "TOP", 0, -10)
|
|
|
|
DressUpFrameDescriptionText:ClearAllPoints()
|
|
DressUpFrameDescriptionText:SetPoint("TOP", DressUpFrame.backdrop, "TOP", 0, -30)
|
|
|
|
EnableClickRotate(DressUpModel)
|
|
DressUpModelRotateLeftButton:Hide()
|
|
DressUpModelRotateRightButton:Hide()
|
|
|
|
SkinButton(DressUpFrameCancelButton)
|
|
SkinButton(DressUpFrameResetButton)
|
|
DressUpFrameResetButton:ClearAllPoints()
|
|
DressUpFrameResetButton:SetPoint("RIGHT", DressUpFrameCancelButton, "LEFT", -2*bpad, 0)
|
|
end)
|