Commit aa49e764 authored by Darth Predator's avatar Darth Predator
Browse files

Completely forgot about raid progress and lfr tooltips

parent 433f75b5
......@@ -382,6 +382,8 @@ P["sle"] = {
},
["bfa"] = {
["uldir"] = false,
["daz"] = false,
["sc"] = false,
},
},
--Loot
......@@ -739,6 +741,8 @@ P["sle"] = {
["sargeras"] = false,
["antorus"] = false,
["uldir"] = true,
["daz"] = true,
["sc"] = true,
},
},
},
......
......@@ -844,6 +844,8 @@ L["RAID_NH"] = "NH"
L["RAID_TOV"] = "ToV"
L["RAID_EN"] = "EN"
L["RAID_ANTO"] = "ATBT"
L["RAID_DAZALOR"] = "BfDA"
L["RAID_STORMCRUS"] = "SC"
L["Raid Progression"] = true
L["Show raid experience of character in tooltip (requires holding shift)."] = true
L["Name Style"] = true
......
......@@ -836,6 +836,8 @@ L["RAID_NH"] = "NH"
L["RAID_TOV"] = "ToV"
L["RAID_EN"] = "EN"
L["RAID_ANTO"] = "Antorus"
L["RAID_DAZALOR"] = "BfDA"
L["RAID_STORMCRUS"] = "SC"
L["Raid Progression"] = true
L["Show raid experience of character in tooltip (requires holding shift)."] = true
L["Name Style"] = true
......
......@@ -828,6 +828,8 @@ L["RAID_NH"] = "밤요"
L["RAID_TOV"] = "용시"
L["RAID_EN"] = "에악"
L["RAID_ANTO"] = "안토"
L["RAID_DAZALOR"] = "BfDA"
L["RAID_STORMCRUS"] = "SC"
L["Raid Progression"] = "레이드 진도"
L["Show raid experience of character in tooltip (requires holding shift)."] = "툴팁에 캐릭터의 공격대 경험을 표시합니다.(쉬프트 누르고 있을 때)"
L["Name Style"] = "이름 스타일"
......
......@@ -840,6 +840,8 @@ L["RAID_NH"] = "ЦН"
L["RAID_TOV"] = "ИД"
L["RAID_EN"] = "ИК"
L["RAID_ANTO"] = "АПТ"
L["RAID_DAZALOR"] = "БзДА"
L["RAID_STORMCRUS"] = "ГШ"
L["Raid Progression"] = "Рейдовый прогресс"
L["Show raid experience of character in tooltip (requires holding shift)."] = "Отображает рейдовый опыт данного персонажа (требуется зажатый shift)"
L["Name Style"] = "Стиль названия"
......
......@@ -62,11 +62,33 @@ LFR.InstanceData = {
["map"] = 1148,
["dungeonIDs"] = {1731,1732,1733},
},
[3] = {
["name"] = "sc",
["ilevel"] = 350,
["map"] = 1345,
["dungeonIDs"] = {1951},
},
},
},
}
--Chacking if tracking of an expack dungeons is enabled
if E.myfaction == "Horde" then
LFR.InstanceData["Raids"]["BFA"][2] = {
["name"] = "daz",
["ilevel"] = 350,
["map"] = 1358,
["dungeonIDs"] = {1948, 1949, 1950},
}
else
LFR.InstanceData["Raids"]["BFA"][2] = {
["name"] = "daz",
["ilevel"] = 350,
["map"] = 1358,
["dungeonIDs"] = {1945, 1946, 1947},
}
end
--Checking if tracking of an expack dungeons is enabled
function LFR:CheckOptions()
if LFR:CheckLegion() or LFR:CheckBFA() then return true end
return false
......
......@@ -104,6 +104,36 @@ RP.bosses = {
},
"uldir",
},
{ -- Dazar'Alor
{ -- Mythic
13331, 13348, 13353, 13362, 13366, 13370, 13374, 13378, 13382,
},
{ -- Heroic
13330, 13347, 13351, 13361, 13365, 13369, 13373, 13377, 13381,
},
{ -- Normal
13329, 13346, 13350, 13359, 13364, 13368, 13372, 13376, 13380,
},
{ -- LFR
13328, 13344, 13349, 13358, 13363, 13367, 13371, 13375, 13379,
},
"daz",
},
{ -- Storm Crucible
{ -- Mythic
13407, 13413,
},
{ -- Heroic
13406, 13412,
},
{ -- Normal
13405, 13411,
},
{ -- LFR
13404, 13408,
},
"sc",
},
}
RP.Raids = {}
RP.modes = {
......@@ -129,6 +159,8 @@ local function PopulateRaidsTable()
SLE:GetMapInfo(850 , "name"),
SLE:GetMapInfo(909, "name"),
SLE:GetMapInfo(1148, "name"),
SLE:GetMapInfo(1358, "name"),
SLE:GetMapInfo(1345, "name"),
}
RP.Raids["SHORT"] = {
L["RAID_EN"],
......@@ -137,6 +169,8 @@ local function PopulateRaidsTable()
L["RAID_TOS"],
L["RAID_ANTO"],
SLE:GetMapInfo(1148, "name"),
L["RAID_DAZALOR"],
L["RAID_STORMCRUS"],
}
end
......@@ -222,7 +256,7 @@ local function AchieveReady(event, GUID)
TT:UnregisterEvent("INSPECT_ACHIEVEMENT_READY")
end
local function OnInspectInfo(self, tt, unit, r, g, b)
local function OnInspectInfo(self, tt, unit, numTries, r, g, b)
if T.InCombatLockdown() then return end
if not E.db.sle.tooltip.RaidProg.enable then return end
if not (unit and T.CanInspect(unit)) then return end
......@@ -252,7 +286,7 @@ end
function RP:Initialize()
PopulateRaidsTable()
hooksecurefunc(TT, 'ShowInspectInfo', OnInspectInfo)
hooksecurefunc(TT, 'AddInspectInfo', OnInspectInfo)
end
SLE:RegisterModule(RP:GetName())
\ No newline at end of file
......@@ -84,6 +84,8 @@ local function configTable()
set = function(info, value) E.db.sle.lfr.bfa[ info[#info] ] = value; end,
args = {
uldir = { order = 1, type = "toggle", name = SLE:GetMapInfo(1148 , "name") },
daz = { order = 2, type = "toggle", name = SLE:GetMapInfo(1358 , "name") },
sc = { order = 3, type = "toggle", name = SLE:GetMapInfo(1345 , "name") },
},
},
},
......
......@@ -84,6 +84,8 @@ local function configTable()
sargeras = { order = -47, type = "toggle", name = SLE:GetMapInfo(850 , "name") },
antorus = { order = -46, type = "toggle", name = SLE:GetMapInfo(909, "name") },
uldir = { order = -45, type = "toggle", name = SLE:GetMapInfo(1148, "name") },
daz = { order = -44, type = "toggle", name = SLE:GetMapInfo(1358, "name") },
sc = { order = -43, type = "toggle", name = SLE:GetMapInfo(1345, "name") },
},
},
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment