Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-06-09, 04:19 AM   #1
jadakren
A Flamescale Wyrmkin
 
jadakren's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 103
Aura Icons: CustomFilters

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
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Aura Icons: CustomFilters


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off