From 1ac3ce880c4f23a658f7355d87e6a5a6e8804ef0 Mon Sep 17 00:00:00 2001 From: p3lim Date: Mon, 13 Dec 2010 00:04:21 +0100 Subject: [PATCH] Use alpha to temporary hide the overlay until combat is dropped --- Molinari.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Molinari.lua b/Molinari.lua index d9cf641..4b9e2fd 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -51,6 +51,7 @@ function button:MODIFIER_STATE_CHANGED(key) if(not self:IsShown() and not key and key ~= 'LALT' and key ~= 'RALT') then return end if(InCombatLockdown()) then + self:SetAlpha(0) self:RegisterEvent('PLAYER_REGEN_ENABLED') else self:ClearAllPoints() @@ -61,5 +62,6 @@ end function button:PLAYER_REGEN_ENABLED() self:UnregisterEvent('PLAYER_REGEN_ENABLED') self:ClearAllPoints() + self:SetAlpha(1) self:Hide() end -- 1.7.9.5