Moved checks to lfr.lua aswell
Darthpred [02-16-13 - 06:50]
Moved checks to lfr.lua aswell
diff --git a/ElvUI_SLE/modules/datatexts/lfr.lua b/ElvUI_SLE/modules/datatexts/lfr.lua
index 423f7c7..59dc1b4 100644
--- a/ElvUI_SLE/modules/datatexts/lfr.lua
+++ b/ElvUI_SLE/modules/datatexts/lfr.lua
@@ -237,3 +237,58 @@ function DT:ToT(id1, id2, id3, id4)
DT:TwelveKill(id1, id2, id3, id4)
end
end
+
+function DT:LFRShow()
+ local lvl = UnitLevel("player")
+ local ilvl = GetAverageItemLevel()
+ DT.tooltip:AddLine(" ")
+ DT.tooltip:AddLine(RAID_FINDER)
+ if E.db.sle.lfrshow.ds then
+ DT.tooltip:AddLine(" "..GetMapNameByID(824))
+ if lvl == 85 and ilvl >= 372 then
+ DT:DragonSoul(416, 417)
+ else
+ DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
+ end
+ DT.tooltip:AddLine(" ")
+ end
+ if E.db.sle.lfrshow.mv then
+ DT.tooltip:AddLine(" "..GetMapNameByID(896))
+ if lvl == 90 and ilvl >= 460 then
+ DT:Mogushan(527, 528)
+ else
+ DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
+ end
+ DT.tooltip:AddLine(" ")
+ end
+
+ if E.db.sle.lfrshow.hof then
+ DT.tooltip:AddLine(" "..GetMapNameByID(897))
+ if lvl == 90 and ilvl >= 470 then
+ DT:HoF(529, 530)
+ else
+ DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
+ end
+ DT.tooltip:AddLine(" ")
+ end
+
+ if E.db.sle.lfrshow.toes then
+ DT.tooltip:AddLine(" "..GetMapNameByID(886))
+ if lvl == 90 and ilvl >= 470 then
+ DT:ToES(526)
+ else
+ DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
+ end
+ DT.tooltip:AddLine(" ")
+ end
+
+ if E.db.sle.lfrshow.tot then
+ DT.tooltip:AddLine(" "..GetMapNameByID(930))
+ if lvl == 90 and ilvl >= 480 then
+ DT:ToT(610, 611, 612, 613)
+ else
+ DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
+ end
+ DT.tooltip:AddLine(" ")
+ end
+end
diff --git a/ElvUI_SLE/modules/datatexts/time.lua b/ElvUI_SLE/modules/datatexts/time.lua
index f956955..06d66e5 100644
--- a/ElvUI_SLE/modules/datatexts/time.lua
+++ b/ElvUI_SLE/modules/datatexts/time.lua
@@ -131,62 +131,9 @@ local function OnEnter(self)
end
end
+ --LFR lockout text
if E.db.sle.lfrshow.enabled then
- --LFR lockout text
- local lvl = UnitLevel("player")
- local ilvl = GetAverageItemLevel()
- DT.tooltip:AddLine(" ")
- DT.tooltip:AddLine(RAID_FINDER)
- if E.db.sle.lfrshow.ds then
- DT.tooltip:AddLine(" "..GetMapNameByID(824))
- if lvl == 85 and ilvl >= 372 then
- DT:DragonSoul(416, 417)
- else
- DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
- end
- DT.tooltip:AddLine(" ")
- end
-
- if E.db.sle.lfrshow.mv then
- DT.tooltip:AddLine(" "..GetMapNameByID(896))
- if lvl == 90 and ilvl >= 460 then
- DT:Mogushan(527, 528)
- else
- DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
- end
- DT.tooltip:AddLine(" ")
- end
-
- if E.db.sle.lfrshow.hof then
- DT.tooltip:AddLine(" "..GetMapNameByID(897))
- if lvl == 90 and ilvl >= 470 then
- DT:HoF(529, 530)
- else
- DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
- end
- DT.tooltip:AddLine(" ")
- end
-
- if E.db.sle.lfrshow.toes then
- DT.tooltip:AddLine(" "..GetMapNameByID(886))
- if lvl == 90 and ilvl >= 470 then
- DT:ToES(526)
- else
- DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
- end
- DT.tooltip:AddLine(" ")
- end
-
- if E.db.sle.lfrshow.tot then
- DT.tooltip:AddLine(" "..GetMapNameByID(930))
- if lvl == 90 and ilvl >= 480 then
- DT:ToT(610, 611, 612, 613)
- else
- DT.tooltip:AddLine(" "..L["No LFR is available for your level/gear."])
- end
- DT.tooltip:AddLine(" ")
- end
- --LFR lockout end
+ DT:LFRShow()
end
local oneraid, lockoutColor