Quantcast

fade anim for ui buttons

Darthpred [06-28-14 - 16:17]
fade anim for ui buttons
Filename
ElvUI_SLE/modules/uibuttons/uibuttons.lua
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)