turtle-wow: add skin for shop menu button

This commit is contained in:
shagu
2025-03-22 20:36:43 +01:00
parent a7bc89ca6d
commit 1e4458c9ad
+24
View File
@@ -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")