Quantcast

Some additions to HM saves

Darthpred [12-13-14 - 17:43]
Some additions to HM saves
Filename
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/modules/sledatatexts/lfr.lua
ElvUI_SLE/options/datatexts_c.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index f8e93c8..f346a3a 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -241,6 +241,8 @@ P['sle'] = {
 		['soo'] = false,
 		['leishen'] = false,
 		['hm'] = false,
+		['hmNormal'] = false,
+		['hmHeroic'] = false,
 	},

 	--Loot (Restructured)
diff --git a/ElvUI_SLE/modules/sledatatexts/lfr.lua b/ElvUI_SLE/modules/sledatatexts/lfr.lua
index da8be61..048d33d 100755
--- a/ElvUI_SLE/modules/sledatatexts/lfr.lua
+++ b/ElvUI_SLE/modules/sledatatexts/lfr.lua
@@ -401,7 +401,7 @@ function DT:LFRShow()
 	local lvl = UnitLevel("player")
 	local ilvl = GetAverageItemLevel()
 	DT.tooltip:AddLine(" ")
-	DT.tooltip:AddLine(RAID_FINDER)
+	DT.tooltip:AddLine(RAID_FINDER.." / "..L["Raid Saves"])
 	if E.db.sle.lfrshow.ds then
 		DT.tooltip:AddLine(" "..GetMapNameByID(824))
 		if lvl == 85 and ilvl >= 372 then
@@ -469,6 +469,24 @@ function DT:LFRShow()
 			DT.tooltip:AddLine(" "..L["This LFR isn't available for your level/gear."])
 		end
 	end
+
+	if E.db.sle.lfrshow.hmNormal then
+		DT.tooltip:AddLine(" "..GetMapNameByID(994).." ("..PLAYER_DIFFICULTY1..")")
+		if lvl == 100 and ilvl >= 627 then
+			HM(895, 895, 895);
+		else
+			DT.tooltip:AddLine(" "..L["This raid isn't available for your level/gear."])
+		end
+	end
+
+	if E.db.sle.lfrshow.hmHeroic then
+		DT.tooltip:AddLine(" "..GetMapNameByID(994).." ("..PLAYER_DIFFICULTY2..")")
+		if lvl == 100 and ilvl >= 650 then
+			HM(896, 896, 896);
+		else
+			DT.tooltip:AddLine(" "..L["This raid isn't available for your level/gear."])
+		end
+	end

 	if not E.db.sle.lfrshow.ds and not E.db.sle.lfrshow.mv and not E.db.sle.lfrshow.hof and not E.db.sle.lfrshow.toes and not E.db.sle.lfrshow.tot and not E.db.sle.lfrshow.soo and not E.db.sle.lfrshow.hm then
 		DT.tooltip:AddLine(" "..L["You didn't select any instance to track."])
diff --git a/ElvUI_SLE/options/datatexts_c.lua b/ElvUI_SLE/options/datatexts_c.lua
index 67d0a74..3e56039 100644
--- a/ElvUI_SLE/options/datatexts_c.lua
+++ b/ElvUI_SLE/options/datatexts_c.lua
@@ -268,6 +268,16 @@ local function configTable()
 								type = "toggle",
 								name = GetMapNameByID(994),
 							},
+							hmNormal = {
+								order = 8,
+								type = "toggle",
+								name = GetMapNameByID(994).." ("..PLAYER_DIFFICULTY1..")",
+							},
+							hmHeroic = {
+								order = 9,
+								type = "toggle",
+								name = GetMapNameByID(994).." ("..PLAYER_DIFFICULTY2..")",
+							},
 						},
 					},
 					hubs = {