It surely is
http://www.wowpedia.org/UI_escape_sequences
I prefered my way so I have more control over the textures. Things like possible future or user edited vertex-coloring, anchoring etc.
The tag solution is easier to maintain as you can rely on the logics offered by oUF. You'd create empty elements like:
lua Code:
self.Leader = self:CreateTexture()
self.Resting = self:CreateTexture()
-- and so on
Then you'd need a tag that updates with already existing standard tags:
lua Code:
oUF.TagEvents["myIcons"] = oUF.TagEvents["resting"] .. " " .. oUF.TagEvents["leader"] -- etc.
oUF.Tags["xpRep"] = function(unit)
local ret = ""
local frame = _G["SomehowBuildTheUFNameFromThe" .. unit]
ret = ret .. (frame.Leader:IsShown() and "|T.......|t" or "")
ret = ret .. (frame.Resting:IsShown() and "|T.......|t" or "")
return ret
end
If you don't want to reference a frame inside a tag it goes down to my attempt just with building a string instead of anchoring elements which is where I would prefer the usage of actual oUF elements / textures.
Anyway, I think he got it now.