Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-03-09, 05:19 PM   #11
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Question :

I've been trying to nick p3lim's AFK function and use that tag as base for a few of my own. I'm having some issues understanding a few things.

1.
Code:
self:Tag(name, '[name( )][leader( )][offline( )][afk( )]|cff00ffff[(- )assistname( )][assisticon]')
Why the () and what is their function?
2.
Code:
oUF.Tags["[pws]"] = function(u) return UnitAura(u, "Power Word: Shield") and "PwS" end
oUF.TagEvents["[pws]"] = "UNIT_AURA"
Is this corrert? All I did here was change some stuff without really understanding though LOL
 
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF - Layout discussion


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