Quantcast

blah

Darthpred [08-20-14 - 05:00]
blah
Filename
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/modules/minimap/minimapcoords.lua
ElvUI_SLE/options/minimap_c.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index 7dbc92a..6fdc59c 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -316,6 +316,7 @@ P['sle'] = {
 	['minimap'] = {
 		['enable'] = false,
 		['combat'] = false,
+		['alpha'] = 1,
 		['coords'] = {
 			['display'] = "SHOW",
 			['middle'] = "CORNERS",
diff --git a/ElvUI_SLE/modules/minimap/minimapcoords.lua b/ElvUI_SLE/modules/minimap/minimapcoords.lua
index 373ea44..4a0bb3c 100644
--- a/ElvUI_SLE/modules/minimap/minimapcoords.lua
+++ b/ElvUI_SLE/modules/minimap/minimapcoords.lua
@@ -88,6 +88,10 @@ local function CreateCoordsFrame(middle)
 	UpdatePosition(middle)
 end

+function M:Transparency()
+	cluster:SetAlpha(E.db.sle.minimap.alpha)
+end
+
 M.UpdateSettingsSLE = M.UpdateSettings
 function M:UpdateSettings()
 	M.UpdateSettingsSLE(self)
@@ -108,4 +112,5 @@ function M:UpdateSettings()
 	end

 	M:SLEHideMinimap()
+	M:Transparency()
 end
\ No newline at end of file
diff --git a/ElvUI_SLE/options/minimap_c.lua b/ElvUI_SLE/options/minimap_c.lua
index f327182..0c55118 100644
--- a/ElvUI_SLE/options/minimap_c.lua
+++ b/ElvUI_SLE/options/minimap_c.lua
@@ -16,7 +16,7 @@ local function configTable()
 				type = 'description',
 				name = L['MINIMAP_DESC'],
 			},
-			mapiconsenable = {
+			combat = {
 				type = "toggle",
 				name = L['Hide in Combat'],
 				order = 3,
@@ -25,10 +25,19 @@ local function configTable()
 				get = function(info) return E.db.sle.minimap.combat end,
 				set = function(info, value) E.db.sle.minimap.combat = value; E:GetModule('Minimap'):SLEHideMinimap() 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; E:GetModule('Minimap'):Transparency() end,
+			},
 			coords = {
 				type = "group",
 				name = L["Minimap Coordinates"],
-				order = 4,
+				order = 5,
 				guiInline = true,
 				disabled = function() return not E.private.general.minimap.enable or not E.db.sle.minimap.enable end,
 				args = {
@@ -70,7 +79,7 @@ local function configTable()
 			mapicons = {
 				type = "group",
 				name = L["Minimap Buttons"],
-				order = 5,
+				order = 6,
 				guiInline = true,
 				disabled = function() return not E.private.sle.minimap.mapicons.enable end,
 				args = {