Fix FadeOut, we need to check if the mouse is over the Overlay now, and not the actual bar.

This commit is contained in:
Hendrik Leppkes
2009-02-22 10:08:58 +01:00
parent 6758e5d9c3
commit 7b28cae101
+2 -2
View File
@@ -371,10 +371,10 @@ function Bar:SetFadeOutDelay(delay)
end
function Bar:ControlFadeOut()
if self.faded and MouseIsOver(self) then
if self.faded and MouseIsOver(self.overlay) then
self:SetAlpha(self.config.alpha)
self.faded = nil
elseif not self.faded and not MouseIsOver(self) then
elseif not self.faded and not MouseIsOver(self.overlay) then
local fade = self:GetAttribute("fade")
if tonumber(fade) then
fade = min(max(fade, 0), 100) / 100