I'm trying to use Aura Icon Filters within my layout, but anyform of testing wether an aura name exists in a table only causes the entire set of aura icons to be hidden.
Code:
local whitelist = {
["Renew"] = true,
["Power Word: Fortitude"] = true,
["Prayer of Fortitude"] = true,
["Shadow Protection"] = true,
["Prayer of Shadow Protection"] = true,
["Divine Spirit"] = true,
["Prayer of Spirit"] = true,
}
local function customFilter(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster)
icon.duration = duration
icon.timeLeft = timeLeft
icon.owner = caster
return name and whitelist[name]
end
...
inside the style function :
Code:
self.CustomAuraFilter = customFilter
Variations of :
Code:
if(name and whitelist[name])then
return true
end
don't seem to work either