Quantcast

Removing minimap transparency option since it caused a lot of shit

Darthpred [09-12-16 - 06:16]
Removing minimap transparency option since it caused a lot of shit
Filename
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/modules/minimap/minimapcoords.lua
ElvUI_SLE/options/minimap/minimap_c.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index 79c4083..c97a647 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -454,7 +454,6 @@ P["sle"] = {
 	--Minimap Module
 	["minimap"] = {
 		["combat"] = false,
-		["alpha"] = 1,
 		["coords"] = {
 			["enable"] = false,
 			["display"] = "SHOW",
diff --git a/ElvUI_SLE/modules/minimap/minimapcoords.lua b/ElvUI_SLE/modules/minimap/minimapcoords.lua
index 861ac34..3985666 100644
--- a/ElvUI_SLE/modules/minimap/minimapcoords.lua
+++ b/ElvUI_SLE/modules/minimap/minimapcoords.lua
@@ -87,11 +87,8 @@ function MM:CreateCoordsFrame()
 	MM:UpdateCoordinatesPosition()
 end

-function MM:MinimapTransparency()
-	cluster:SetAlpha(E.db.sle.minimap.alpha)
-end
-
 function MM:UpdateSettings()
+	if E.db.sle.minimap.alpha then E.db.sle.minimap.alpha = nil end
 	if not MM.coordspanel then
 		MM:CreateCoordsFrame()
 	end
@@ -108,7 +105,6 @@ function MM:UpdateSettings()
 		MM.coordspanel:Show()
 	end
 	MM:HideMinimapRegister()
-	MM:MinimapTransparency()
 end

 function MM:Initialize()
diff --git a/ElvUI_SLE/options/minimap/minimap_c.lua b/ElvUI_SLE/options/minimap/minimap_c.lua
index 20cbb81..06b2674 100644
--- a/ElvUI_SLE/options/minimap/minimap_c.lua
+++ b/ElvUI_SLE/options/minimap/minimap_c.lua
@@ -28,15 +28,6 @@ local function configTable()
 				get = function(info) return E.db.sle.minimap.combat end,
 				set = function(info, value) E.db.sle.minimap.combat = value; MM:HideMinimapRegister() end,
 			},
-			alpha = {
-				order = 4,
-				type = 'range',
-				name = L["Minimap Alpha"],
-				isPercent = true,
-				min = 0.3, max = 1, step = 0.01,
-				get = function(info) return E.db.sle.minimap.alpha end,
-				set = function(info, value) E.db.sle.minimap.alpha = value; MM:MinimapTransparency() end,
-			},
 		},
 	}
 end