slaren

Filters

NameUpdatedCategoryAuthorStage
NameUpdatedCategoryAuthorStage

LibCooldownTracker-1.0

Oct 22, 2014 slaren Alpha
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...

LibFunctional-1.0

Oct 16, 2014 slaren Release
Library of helper functions that enable functional style programming and perform commonly used operations on lists and tables. Example: local fn = LibStub("LibFunctional-1.0") local list = { 1, 2, 3, 4, 5 } -- returns a list with the result of applying the specified function to all the values in the list local mapped = fn.map(list, function(x) return x * 2 end) -- returns the product of all the values in the list local s = fn.reduce(mapped, function(a, b) return a * b end) -- prints a sorted...