- fixed the integration with bigwigs.

This commit is contained in:
Tercio
2016-12-19 11:57:59 -02:00
parent 312fa7b47d
commit 55a1065849
3 changed files with 11 additions and 22 deletions
@@ -298,8 +298,7 @@ local function CreatePluginFrames (data)
DBM:RegisterCallback ("DBM_TimerStart", dbm_timer_callback)
end
function EncounterDetails:RegisterBigWigsCallBack()
if (BigWigs) then
BigWigs:Enable()
if (BigWigsLoader) then
function EncounterDetails:BigWigs_StartBar (event, module, spellid, bar_text, time, icon, ...)
--print (event, module, spellid, bar_text, time, icon, ...)
spellid = tostring (spellid)
@@ -307,8 +306,8 @@ local function CreatePluginFrames (data)
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 ""}
end
end
if (BigWigs.RegisterMessage) then
BigWigs.RegisterMessage (EncounterDetails, "BigWigs_StartBar")
if (BigWigsLoader.RegisterMessage) then
BigWigsLoader.RegisterMessage (EncounterDetails, "BigWigs_StartBar")
end
end
end