LibCooldownTracker-1.0

  • 2 pages found
NameAuthorLast updated byUpdated on
NameAuthorLast updated byUpdated on
API slaren slaren Apr 26, 2013
lib:GetCooldownData(spellid) Returns the raw data of a specified cooldown spellid. Parameters spellid The cooldown spellid. lib:GetCooldownsData() Returns the raw data of all the cooldowns. See the cooldowns_*.lua data files for more details about its structure. lib:GetUnitCooldownInfo(unitid, spellid) Returns a table with the state of a unit's cooldown, or nil if there is no state stored about it. Parameters unitid The unit unitid. spellid The cooldown spellid. Usage local tracked =...
Main slaren slaren May 01, 2013
Library for tracking cooldowns of both enemies and allies. This library was made for the cooldown tracker in GladiusEx and therefore it is mainly intended to be used in arenas. Example usage: local CT = LibStub("LibCooldownTracker-1.0") function addon:OnEnable() CT.RegisterCallback(self, "LCT_CooldownUsed") CT.RegisterCallback(self, "LCT_CooldownsReset") CT:RegisterUnit("player") end function addon:OnDisable() CT:UnregisterUnit("player") CT.UnregisterAllCallbacks(self) end function...
  • 2 pages found