if DotIt.db.profile.ebossmods then |
local color = getColor() |
if string.find(id, "dummy") then return end -- should prevent this strange behavior |
DotIt.sb:CreateBar(id, timer, 0, id, icon, 1, deepCopy(color), deepCopy(color), DotIt.db.profile.bartexture, function() DotIt:removeColor() end) |
DotIt.sb:CreateBar(id, timer, 0, id, icon, DotIt:GetBarPos(0, "Bossmods"), deepCopy(color), deepCopy(color), DotIt.db.profile.bartexture, function() DotIt:removeColor() end) |
if not DotIt.db.profile.hidebossmod then |
DotIt.hooks[self]["CreateBar"](self, timer, id, icon, huge, small, color) |
end |
else |
DotIt.hooks[self]["CreateBar"](self, timer, id, icon, huge, small, color) |
end |
end |
local function bigwigs(self, id, dur, icon) |
if DotIt.db.profile.ebossmods then |
local color = getColor() |
DotIt.sb:CreateBar(id, dur, 0, id, icon, 1, deepCopy(color), deepCopy(color), DotIt.db.profile.bartexture, function() DotIt:removeColor() end) |
DotIt.sb:CreateBar(id, dur, 0, id, icon, DotIt:GetBarPos(0, "Bossmods"), deepCopy(color), deepCopy(color), DotIt.db.profile.bartexture, function() DotIt:removeColor() end) |
end |
end |
function DotIt:ADDON_LOADED(self, addon) |
if addon == "BigWigs_Plugins" then |
DotIt:ScheduleTimer(function() BigWigs:ToggleModuleActive("Bars", false) end, 2) |
if DotIt.db.profile.ebossmods and DotIt.db.profile.hidebossmod then |
if addon == "BigWigs_Plugins" then |
DotIt:ScheduleTimer(function() BigWigs:ToggleModuleActive("Bars", false) end, 2) |
end |
end |
end |
local function setupHooks() |
-- dbm hook |
if IsAddOnLoaded("DBM-Core") then |
DotIt:Hook(DBM.Bars, "CreateBar", function(...) dbmHook(...) end) |
elseif IsAddOnLoaded("BigWigs") then |
if IsAddOnLoaded("BigWigs") then |
AceLibrary("AceEvent-2.0"):RegisterEvent("BigWigs_StartBar", bigwigs) |
DotIt:RegisterEvent("ADDON_LOADED") |
elseif IsAddOnLoaded("DBM-Core") then |
DotIt:RawHook(DBM.Bars, "CreateBar", function(...) dbmHook(...) end) |
end |
end |
|