I'm trying to add some color to the name text in the frames. I guess this is best doing in the tags file.
However i do have some problems with format i belive.
This is the original code:
Code:
oUF.Tags.Events['name:raid'] = 'UNIT_NAME_UPDATE'
oUF.Tags.Methods['name:raid'] = function(unit)
local name = UnitName(unit)
return ns.utf8sub(name, config.units.raid.nameLength)
end
My guess was something like:
local _, class = UnitClass(unit)
local color = oUF.colors.class[class]
return something format something name something
|
So.. any suggestions?