Added Details:GetBossEncounterTexture(encounterName); Added combat.bossIcon; Added combat.bossTimers
This commit is contained in:
@@ -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 ""}
|
||||
|
||||
Reference in New Issue
Block a user