Is it only possible to use the tag system for font strings or can we even use it for textures?
I finally got my heal druid to 80 and had some problems tracking my hots in raids.
p3lim posted a nice idea for tracking mark of the wild on another thread that got me thinking. What I finally want is 4 indicators in the 4 edges of my raidframe, indicating each druid hot. Regrowth, Rejuventation, Lifebloom and Wildgrowth.
What I am asking myself: Is it possible to apply tag-events to textures or frames aswell, or is it fontstring only? Fontstring only I guess.
Idea with using fontstring
Code:
oUF.Tags["[checkreju]"] = function(unit)
if UnitAura(unit, "Rejuvenation", "HELPFUL|PLAYER") then
return "r"
else
return ""
end
end
oUF.TagEvents["[checkreju]"] = "UNIT_AURA"
local RejuIndicator = SetFontString(self.Health, d3font, 16, "THINOUTLINE")
RejuIndicator:SetPoint("TOPLEFT",3,-3)
self:Tag(RejuIndicator, "[checkreju]")
I dont know if this condition does work though:
Code:
if UnitAura(unit, "Rejuvenation", "HELPFUL|PLAYER") then
I mean when I try adding a filter.
Whats kind of disturbing is that the documentation says that
http://www.wowwiki.com/API_UnitAura needs a unit and the "index" of the buff/debuff. But is does seem to work by using the spellname aswell.
What I am kind of afraid is the sheer number of UNIT_AURA events in raids.
The problem with this is, that if I have 4 different indicators with 4 different events I think its 4x the load as if I would anchor the UNIT_AURA event to self myself and create a custom function that tries to find the buffs on the player.
I don't know whats faster: UnitAura(unit, "Rejuvenation", "HELPFUL|PLAYER") or going through 1,40 buffs each UNIT_AURA checking for the 4 possible buffs.