Open Raid Library update
This commit is contained in:
parent
d4f50e7cb7
commit
1afb897904
8 changed files with 298 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue