From fdb9b8c765e5dc67a3a976c5c1a4a2223bda99a2 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 16 Feb 2013 10:50:18 +0400 Subject: [PATCH] Moved checks to lfr.lua aswell --- ElvUI_SLE/modules/datatexts/lfr.lua | 55 ++++++++++++++++++++++++++++++++ ElvUI_SLE/modules/datatexts/time.lua | 57 ++-------------------------------- 2 files changed, 57 insertions(+), 55 deletions(-) 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 -- 1.7.9.5