Quantcast

Now that's some alphas. Related to #235

Darthpred [07-28-16 - 15:33]
Now that's some alphas. Related to #235
Filename
ElvUI_SLE/modules/datatexts.lua
diff --git a/ElvUI_SLE/modules/datatexts.lua b/ElvUI_SLE/modules/datatexts.lua
index b11e8f5..74e9794 100644
--- a/ElvUI_SLE/modules/datatexts.lua
+++ b/ElvUI_SLE/modules/datatexts.lua
@@ -20,14 +20,14 @@ DTP.Names = {}

 local function Bar_OnEnter(self)
 	if DTP.db["panel"..self.Num].mouseover then
-		E:UIFrameFadeIn(self, 0.2, self:GetAlpha(), 1)
+		E:UIFrameFadeIn(self, 0.2, self:GetAlpha(), DTP.db["panel"..self.Num].alpha)
 	end
 end

 local function Button_OnEnter(self)
 	local bar = self:GetParent()
 	if DTP.db["panel"..bar.Num].mouseover then
-		E:UIFrameFadeIn(bar, 0.2, bar:GetAlpha(), 1)
+		E:UIFrameFadeIn(bar, 0.2, bar:GetAlpha(), DTP.db["panel"..bar.Num].alpha)
 	end
 end

@@ -74,7 +74,7 @@ function DTP:Mouseover(i)
 	if DTP.db["panel"..i].mouseover then
 		self["Panel_"..i]:SetAlpha(0)
 	else
-		self["Panel_"..i]:SetAlpha(1)
+		self["Panel_"..i]:SetAlpha(DTP.db["panel"..i].alpha)
 	end
 end