/trunk/oUF_AuraBars
if auraBarParent.PostCreateBar then |
auraBarParent.PostCreateBar(statusBar) |
end |
return statusBar |
end |
for index = 1, 40 do |
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable = UnitAura(unit, index, helpOrHarm) |
if not name then break end |
if (self.AuraBars.filter or DefaultFilter)(name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable) then |
lastAuraIndex = lastAuraIndex + 1 |
auras[lastAuraIndex] = {} |
if self.AuraBars.sort then |
table.sort(auras, type(self.AuraBars.sort) == 'function' and self.AuraBars.sort or sort) |
end |
-- Show and configure bars for buffs/debuffs. |
local bars = self.AuraBars.bars |
for index = 1 , lastAuraIndex do |
local aura = auras[index] |
local bar = bars[index] |
if not bar then |
bar = CreateAuraBar(self, index == 1 and self.AuraBars or bars[index - 1]) |
bars[index] = bar |