Added Details:GetBossEncounterTexture(encounterName); Added combat.bossIcon; Added combat.bossTimers

This commit is contained in:
Tercio Jose
2023-07-05 00:24:08 -03:00
parent 9b879f4baa
commit 56275fecf9
8 changed files with 74 additions and 3 deletions
+9
View File
@@ -137,12 +137,17 @@ function Details:CreateCallbackListeners()
Details:Destroy(current_table_bigwigs)
end
end)
event_frame:RegisterEvent("ENCOUNTER_START")
event_frame:RegisterEvent("ENCOUNTER_END")
event_frame:RegisterEvent("PLAYER_REGEN_ENABLED")
if (_G.DBM) then
local dbm_timer_callback = function(bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
local currentCombat = Details:GetCurrentCombat()
table.insert(currentCombat.bossTimers, {"dbm", bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid})
--print("dbm event", bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
local spell = tostring(spellId)
if (spell and not current_table_dbm [spell]) then
current_table_dbm [spell] = {spell, id, msg, timer, icon, bartype, spellId, colorId, modid}
@@ -156,6 +161,10 @@ function Details:CreateCallbackListeners()
function Details:RegisterBigWigsCallBack()
if (BigWigsLoader) then
function Details:BigWigs_StartBar (event, module, spellid, bar_text, time, icon, ...)
local currentCombat = Details:GetCurrentCombat()
table.insert(currentCombat.bossTimers, {"bw", event, spellid, bar_text, time, icon})
--print("bw event", event, spellid, bar_text, time, icon)
spellid = tostring(spellid)
if (not current_table_bigwigs [spellid]) then
current_table_bigwigs [spellid] = {(type(module) == "string" and module) or (module and module.moduleName) or "", spellid or "", bar_text or "", time or 0, icon or ""}