stable: skin every stabled pet slot the client creates

This commit is contained in:
Brues
2026-10-19 01:33:09 -05:00
parent 40dd9dd6db
commit 5d38322b2e
+10 -3
View File
@@ -22,9 +22,16 @@ pfUI:RegisterSkin("Pet Stable Master", function ()
PetStablePetInfo:ClearAllPoints()
PetStablePetInfo:SetPoint("TOPLEFT", PetStableModel, "TOPLEFT", 10, 0)
local buttons = {"PetStableCurrentPet", "PetStableStabledPet1", "PetStableStabledPet2"}
for _,v in pairs(buttons) do
local button = _G[v]
-- Servers differ in stable size (Turtle WoW has 4 slots), so collect
-- every PetStableStabledPetN the client created.
local buttons = { PetStableCurrentPet }
local i = 1
while _G["PetStableStabledPet"..i] do
table.insert(buttons, _G["PetStableStabledPet"..i])
i = i + 1
end
for _, button in pairs(buttons) do
StripTextures(button)
SkinButton(button, nil, nil, nil, _G[button:GetName().."IconTexture"])