From 9a069678378a2ade1429cd773eee86a0b235ca68 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 1 May 2025 04:10:17 +0200 Subject: [PATCH] actionbar-df-gryphon: keep above action buttons --- mods/actionbar-df-gryphon.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mods/actionbar-df-gryphon.lua b/mods/actionbar-df-gryphon.lua index c84b21b..cf64a7c 100644 --- a/mods/actionbar-df-gryphon.lua +++ b/mods/actionbar-df-gryphon.lua @@ -14,9 +14,10 @@ local module = ShaguTweaks:register({ }) module.enable = function(self) - local loader = CreateFrame("Frame") - loader:RegisterEvent("PLAYER_ENTERING_WORLD") - loader:SetScript("OnEvent", function() + local gryphon = CreateFrame("Frame", nil, MainMenuBarArtFrame) + gryphon:SetFrameStrata("HIGH") + gryphon:RegisterEvent("PLAYER_ENTERING_WORLD") + gryphon:SetScript("OnEvent", function() -- replace original gryphons by dragonflight versions if module.config["dragonfly.gryphon"] == "beta" then -- artwork during beta @@ -31,5 +32,9 @@ module.enable = function(self) MainMenuBarLeftEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon") MainMenuBarRightEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon") end + + -- move gryphons above action buttons + MainMenuBarLeftEndCap:SetParent(this) + MainMenuBarRightEndCap:SetParent(this) end) end