Quantcast

To catch up with Elv's stuff for texture transparency and shit

Darthpred [04-11-15 - 19:40]
To catch up with Elv's stuff for texture transparency and shit

Maybe will return to it later and make another option. too lazy atm tho
Filename
ElvUI_SLE/modules/backgrounds.lua
diff --git a/ElvUI_SLE/modules/backgrounds.lua b/ElvUI_SLE/modules/backgrounds.lua
index 714d794..f9c0af6 100644
--- a/ElvUI_SLE/modules/backgrounds.lua
+++ b/ElvUI_SLE/modules/backgrounds.lua
@@ -24,13 +24,10 @@ local function CreateFrames()
 		v[1]:Hide()
 	end

-	BGb.tex:SetAlpha(0.5)
-
-	--Also the problem. As long as bottom bg can be transparent it's no good in keeping fixed transparency for the texture.
-	--Maybe add an option to change this from using Elv's trnsparency to additional user-set one?
-	BGl.tex:SetAlpha(E.db.general.backdropfadecolor.a - 0.7 > 0 and E.db.general.backdropfadecolor.a - 0.7 or 0.5)
-	BGr.tex:SetAlpha(E.db.general.backdropfadecolor.a - 0.7 > 0 and E.db.general.backdropfadecolor.a - 0.7 or 0.5)
-	BGa.tex:SetAlpha(E.db.general.backdropfadecolor.a - 0.7 > 0 and E.db.general.backdropfadecolor.a - 0.7 or 0.5)
+	BGb.tex:SetAlpha(E.db.general.backdropfadecolor.a or 0.5)
+	BGl.tex:SetAlpha(E.db.general.backdropfadecolor.a or 0.5)
+	BGr.tex:SetAlpha(E.db.general.backdropfadecolor.a or 0.5)
+	BGa.tex:SetAlpha(E.db.general.backdropfadecolor.a or 0.5)
 end

 --Frames Size