Open Raid Library update

This commit is contained in:
Tercio Jose
2022-04-28 15:52:11 -03:00
parent d4f50e7cb7
commit 1afb897904
8 changed files with 298 additions and 63 deletions
+13
View File
@@ -20,6 +20,8 @@ function Details.CooldownTracking.EnableTracker()
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownListUpdate", "OnReceiveUnitFullCooldownList")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownUpdate", "OnReceiveSingleCooldownUpdate")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownListWipe", "OnCooldownListWipe")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownAdded", "OnCooldownAdded")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownRemoved", "OnCooldownRemoved")
Details.CooldownTracking.RefreshCooldownFrames()
end
@@ -86,6 +88,17 @@ end
Details.CooldownTracking.RefreshCooldownFrames()
end
--when a cooldown has been added to an unit
function Details.CooldownTracking.OnCooldownAdded(unitId, spellId, cooldownInfo, unitCooldows, allUnitsCooldowns)
--here could update the cooldown of the unit, but I'm too lazy so it update all units
Details.CooldownTracking.RefreshCooldownFrames()
end
--when a cooldown has been removed from an unit
function Details.CooldownTracking.OnCooldownRemoved(unitId, spellId, unitCooldows, allUnitsCooldowns)
Details.CooldownTracking.RefreshCooldownFrames()
end
--> Frames
--hide all bars created