From ec383666113466bcccd637cba6830e4d182fbf28 Mon Sep 17 00:00:00 2001 From: Valentin Durand de Gevigney Date: Thu, 19 Mar 2026 20:24:04 +0100 Subject: [PATCH] Now hiding EllesmereUI button in Game Menu if in combat lockdown (to prevent a call to a protected function to GameMenuFrame:SetHeight()) --- EllesmereUI.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/EllesmereUI.lua b/EllesmereUI.lua index 7f19e4df..f6f32e76 100644 --- a/EllesmereUI.lua +++ b/EllesmereUI.lua @@ -6590,6 +6590,12 @@ initFrame:SetScript("OnEvent", function(self, event) local _gameMenuBaseHeight = nil hooksecurefunc(GameMenuFrame, "Layout", function() + if InCombatLockdown() then + btn:Hide() + return + end + btn:Show() + local eg = ELLESMERE_GREEN local hex = string.format("|cff%02x%02x%02x", (eg.r or 0.05) * 255, (eg.g or 0.82) * 255, (eg.b or 0.62) * 255) btn:SetText(hex .. "Ellesmere|r|cffffffff" .. "UI|r")