Quantcast

If a profile.arrow.alpha < 0.1 is seen, reset to 1.0 . No invisible arrows!

Ludovicus [08-04-18 - 20:03]
If a profile.arrow.alpha < 0.1 is seen, reset to 1.0 .  No invisible arrows!
Filename
TomTom_CrazyArrow.lua
diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua
index 28f7606..9f6ba56 100755
--- a/TomTom_CrazyArrow.lua
+++ b/TomTom_CrazyArrow.lua
@@ -254,6 +254,10 @@ function TomTom:ShowHideCrazyArrow()

 		-- Set the scale and alpha
 		wayframe:SetScale(TomTom.db.profile.arrow.scale)
+		-- Do not allow the arrow to be invisible
+		if TomTom.db.profile.arrow.alpha < 0.1 then
+		    TomTom.db.profile.arrow.alpha = 1.0
+		end
 		wayframe:SetAlpha(TomTom.db.profile.arrow.alpha)
 		local width = TomTom.db.profile.arrow.title_width
 		local height = TomTom.db.profile.arrow.title_height