From 42aa554262b162efa1cc89d4506a261a5101e7a6 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 28 Jun 2014 20:17:00 +0400 Subject: [PATCH] fade anim for ui buttons --- ElvUI_SLE/modules/uibuttons/uibuttons.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/modules/uibuttons/uibuttons.lua b/ElvUI_SLE/modules/uibuttons/uibuttons.lua index 0d3be9c..3ff587a 100755 --- a/ElvUI_SLE/modules/uibuttons/uibuttons.lua +++ b/ElvUI_SLE/modules/uibuttons/uibuttons.lua @@ -148,11 +148,14 @@ function UB:Start() end function UB:Mouseover() + local self = UIBFrame if E.db.sle.uibuttons.mouse then - if (MouseIsOver(UIBFrame)) then - UIBFrame:SetAlpha(1) - else - UIBFrame:SetAlpha(0) + if (MouseIsOver(self)) then + UIFrameFadeIn(self, 0.2, self:GetAlpha(), 1) + --UIBFrame:SetAlpha(1) + else + UIFrameFadeOut(self, 0.2, self:GetAlpha(), 0) + --UIBFrame:SetAlpha(0) end else UIBFrame:SetAlpha(1) -- 1.7.9.5