Originally Posted by Slakah
You could add some custom tags:
Code:
oUF.Tags["[AFK]"] = function(u) return UnitIsAFK(u) and "AFK" or ""
oUF.Tags["[DND]"] = function(u) return UnitIsDND(u) and "DND" or ""
oUF.TagEvents["[AFK]"] = "UNIT_FLAGS"
oUF.TagEvents["[DND]"] = "UNIT_FLAGS"
(note: I'm not certain if the event is correct as I don't have access to WoW currently.)
and then use those tags as you would normally.
|
PLAYER_FLAGS_CHANGED is the event
(dont be fooled by the name of the event, it works for any unit)