From e3f007b5ae1d49680108417f4c1c2b7c59383854 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 1 Jun 2008 06:57:29 +0000 Subject: [PATCH] small tweak to fadeout --- Bar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bar.lua b/Bar.lua index 84ca7d0..e7f4355 100644 --- a/Bar.lua +++ b/Bar.lua @@ -436,10 +436,10 @@ end function Bar:ControlFadeOut() if self.config.fadeout then - if MouseIsOver(self) and self.faded then + if self.faded and MouseIsOver(self) then self:SetAlpha(self.config.alpha) self.faded = nil - elseif not MouseIsOver(self) and not self.faded then + elseif not self.faded and not MouseIsOver(self) then self:SetAlpha(self.config.fadeoutalpha) self.faded = true end