From 1e4458c9add0b4631a47ca85be92501700c7a2bf Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 22 Mar 2025 20:36:43 +0100 Subject: [PATCH] turtle-wow: add skin for shop menu button --- modules/turtle-wow.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/turtle-wow.lua b/modules/turtle-wow.lua index ecaad50b..252b39b5 100644 --- a/modules/turtle-wow.lua +++ b/modules/turtle-wow.lua @@ -61,6 +61,30 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function () delay:SetScript("OnUpdate", function() this:Hide() + -- correct positions of new game menu layout + if GameMenuButtonShop then + -- calculate new offset for the shop button + local offset = 0 + local offset = GameMenuButtonPFUI and offset + 22 or offset + local offset = GameMenuButtonPFUIAddOns and offset + 22 or offset + local offset = offset > 0 and offset + 22 or offset + + -- move pfUI and addons to top position + GameMenuButtonShop:ClearAllPoints() + GameMenuButtonShop:SetPoint("TOP", 0, -offset) + + -- restore turtle wow's custom menu layout + GameMenuButtonOptions:ClearAllPoints() + GameMenuButtonOptions:SetPoint("TOP", GameMenuButtonShop, "BOTTOM", 0, -16) + + -- apply pfUI skin to the new shop button + 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) + end + end + -- add tree of life druid form to autoshift if pfUI.autoshift then table.insert(pfUI.autoshift.shapeshifts, "ability_druid_treeoflife")