mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 04:50:49 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user