mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 08:06:55 +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
64 lines
1.9 KiB
Lua
64 lines
1.9 KiB
Lua
pfUI:RegisterSkin("Stack Split", function ()
|
|
StripTextures(StackSplitFrame)
|
|
CreateBackdrop(StackSplitFrame, nil, nil, .75)
|
|
CreateBackdropShadow(StackSplitFrame)
|
|
|
|
SkinButton(StackSplitOkayButton)
|
|
SkinButton(StackSplitCancelButton)
|
|
end)
|
|
|
|
pfUI:RegisterSkin("Coin Pickup", function ()
|
|
StripTextures(CoinPickupFrame)
|
|
CreateBackdrop(CoinPickupFrame, nil, nil, .75)
|
|
CreateBackdropShadow(CoinPickupFrame)
|
|
|
|
SkinButton(CoinPickupOkayButton)
|
|
SkinButton(CoinPickupCancelButton)
|
|
end)
|
|
|
|
pfUI:RegisterSkin("Color Picker", function ()
|
|
CreateBackdrop(ColorPickerFrame)
|
|
CreateBackdropShadow(ColorPickerFrame)
|
|
|
|
ColorPickerFrameHeader:SetTexture("")
|
|
|
|
SkinButton(ColorPickerOkayButton)
|
|
ColorPickerOkayButton:ClearAllPoints()
|
|
ColorPickerOkayButton:SetPoint("BOTTOMRIGHT", ColorPickerFrame, "BOTTOM", -4, 10)
|
|
SkinButton(ColorPickerCancelButton)
|
|
ColorPickerCancelButton:ClearAllPoints()
|
|
ColorPickerCancelButton:SetPoint("BOTTOMLEFT", ColorPickerFrame, "BOTTOM", 4, 10)
|
|
|
|
SkinSlider(OpacitySliderFrame)
|
|
end)
|
|
|
|
pfUI:RegisterSkin("Opacity", function ()
|
|
CreateBackdrop(OpacityFrame, nil, true, .75)
|
|
CreateBackdropShadow(OpacityFrame)
|
|
|
|
SkinSlider(OpacityFrameSlider)
|
|
OpacityFrameSlider:ClearAllPoints()
|
|
OpacityFrameSlider:SetPoint("CENTER", 0, 0)
|
|
end)
|
|
|
|
pfUI:RegisterSkin("Tutorial", function ()
|
|
CreateBackdrop(TutorialFrame, nil, true, .75)
|
|
CreateBackdropShadow(TutorialFrame)
|
|
|
|
SkinCheckbox(TutorialFrameCheckButton)
|
|
SkinButton(TutorialFrameOkayButton)
|
|
end)
|
|
|
|
pfUI:RegisterSkin("Quest Timer", function ()
|
|
CreateBackdrop(QuestTimerFrame, nil, nil, .75)
|
|
CreateBackdropShadow(QuestTimerFrame)
|
|
UpdateMovable(QuestTimerFrame, true)
|
|
QuestTimerHeader:Hide()
|
|
|
|
-- UIParent_ManageFramePositions overwrites positions. Ignore those:
|
|
QuestTimerFrame._SetPoint = QuestTimerFrame.SetPoint
|
|
QuestTimerFrame.SetPoint = function(self, a, b, c, d, e, f)
|
|
if b ~= "MinimapCluster" then self:_SetPoint(a,b,c,d,e,f) end
|
|
end
|
|
end)
|