Files
Brues 710be52f35 phase 3 removing tbc
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
2026-05-25 18:50:53 -05:00

43 lines
1.3 KiB
Lua

pfUI:RegisterSkin("Pet Stable Master", function ()
StripTextures(PetStableFrame)
CreateBackdrop(PetStableFrame, nil, nil, .75)
CreateBackdropShadow(PetStableFrame)
PetStableFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
PetStableFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72)
PetStableFrame:SetHitRectInsets(10,32,10,72)
EnableMovable(PetStableFrame)
SkinCloseButton(PetStableFrameCloseButton, PetStableFrame.backdrop, -6, -6)
PetStableFrame:DisableDrawLayer("BACKGROUND")
PetStableTitleLabel:ClearAllPoints()
PetStableTitleLabel:SetPoint("TOP", PetStableFrame.backdrop, "TOP", 0, -10)
EnableClickRotate(PetStableModel)
PetStableModelRotateLeftButton:Hide()
PetStableModelRotateRightButton:Hide()
PetStablePetInfo:ClearAllPoints()
PetStablePetInfo:SetPoint("TOPLEFT", PetStableModel, "TOPLEFT", 10, 0)
local buttons = {"PetStableCurrentPet", "PetStableStabledPet1", "PetStableStabledPet2"}
for _,v in pairs(buttons) do
local button = _G[v]
StripTextures(button)
SkinButton(button, nil, nil, nil, _G[button:GetName().."IconTexture"])
button.Enable = function()
button:SetBackdropColor()
button.locked = false
end
button.Disable = function()
button:SetBackdropColor(1, .1, .1, .3)
button.locked = true
end
end
SkinButton(PetStablePurchaseButton)
end)