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")