game_menu: skin every menu button dynamically

Scan GameMenuFrame's children on load and on each show instead of a
hardcoded list, so buttons added by other addons (ClassicAPI AddOn
Options, MoveAnything, MCP, SuperMacro, HardcoreDeath, Turtle shop) get
skinned without per-addon calls.
This commit is contained in:
Brues
2026-10-22 18:41:47 -05:00
parent 471c5713c5
commit 1600ec333b
4 changed files with 13 additions and 32 deletions
+2 -4
View File
@@ -98,11 +98,9 @@ pfUI:RegisterModule("turtle-wow", function ()
GameMenuButtonOptions:ClearAllPoints()
GameMenuButtonOptions:SetPoint("TOP", GameMenuButtonShop, "BOTTOM", 0, -16)
-- apply pfUI skin to the new shop button
-- match the shop button's text to the other skinned menu buttons
if pfUI.skin["Game Menu"] and pfUI_config["disabled"]["skin_Game Menu"] ~= "1" then
local font = GameMenuButtonShop:GetFontString()
font:SetTextColor(1,1,1,1)
SkinButton(GameMenuButtonShop)
GameMenuButtonShop:GetFontString():SetTextColor(1,1,1,1)
end
end