WoWInterface SVN oUF_AuraBars

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 27 to Rev 28
    Reverse comparison

Rev 27 → Rev 28

oUF_AuraBars/oUF_AuraBars.lua
160,7 → 160,7
if auraBarParent.PostCreateBar then
auraBarParent.PostCreateBar(statusBar)
end
 
 
return statusBar
end
 
215,7 → 215,7
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] = {}
235,13 → 235,13
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