Quantcast

Mail dt alpha options

Darthpred [07-26-13 - 02:32]
Mail dt alpha options
Filename
ElvUI_SLE/config/profile.lua
ElvUI_SLE/modules/datatexts/options.lua
diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua
index 50c1739..63e9b5e 100755
--- a/ElvUI_SLE/config/profile.lua
+++ b/ElvUI_SLE/config/profile.lua
@@ -152,6 +152,9 @@ P['sle'] = {
 			['tooltipAutohide'] = 0.2,
 			['totals'] = false,
 		},
+		['mail'] = {
+			['icon'] = true,
+		},
 	},

 	--Exp/Rep Bar
diff --git a/ElvUI_SLE/modules/datatexts/options.lua b/ElvUI_SLE/modules/datatexts/options.lua
index d8ac571..cd3e821 100755
--- a/ElvUI_SLE/modules/datatexts/options.lua
+++ b/ElvUI_SLE/modules/datatexts/options.lua
@@ -305,6 +305,26 @@ E.Options.args.sle.args.sldatatext = {
 				},
 			},
 		},
+		slmail = {
+			type = "group",
+			name = L["S&L Mail"],
+			order = 3,
+			args = {
+				header = {
+					order = 1,
+					type = "description",
+					name = L["These options are for modifing the Shadow & Light Mail datatext."],
+				},
+				icon = {
+					order = 2,
+					type = "toggle",
+					name = L["Minimap icon"],
+					desc = L["If enabled will show new mail icon on minimap/"],
+					get = function(info) return E.db.sle.dt.mail.icon end,
+					set = function(info, value) E.db.sle.dt.mail.icon = value; end,
+				}
+			},
+		},
 		timedt = {
 			type = "group",
 			name = RAID_FINDER,