- fixed the integration with bigwigs.
This commit is contained in:
+4
-14
@@ -2284,14 +2284,7 @@
|
||||
DBM:RegisterCallback ("pull", dbm_callback_pull)
|
||||
end
|
||||
|
||||
|
||||
|
||||
LoadAddOn ("BigWigs_Core")
|
||||
|
||||
if (BigWigs and not _G.DBM) then
|
||||
--if (BigWigs) then
|
||||
BigWigs:Enable()
|
||||
|
||||
if (BigWigsLoader and not _G.DBM) then
|
||||
function _detalhes:BigWigs_Message (event, module, key, text, ...)
|
||||
|
||||
if (key == "stages") then
|
||||
@@ -2299,8 +2292,6 @@
|
||||
phase = tonumber (phase)
|
||||
|
||||
if (phase and type (phase) == "number" and _detalhes.encounter_table.phase ~= phase) then
|
||||
--_detalhes:Msg ("Current phase:", phase)
|
||||
|
||||
_detalhes:OnCombatPhaseChanged()
|
||||
|
||||
_detalhes.encounter_table.phase = phase
|
||||
@@ -2316,10 +2307,9 @@
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
if (BigWigs.RegisterMessage) then
|
||||
BigWigs.RegisterMessage (_detalhes, "BigWigs_Message")
|
||||
--print (BigWigs.RegisterMessage)
|
||||
|
||||
if (BigWigsLoader.RegisterMessage) then
|
||||
BigWigsLoader.RegisterMessage (_detalhes, "BigWigs_Message")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user