Originally Posted by p3lim
Im using this tag for oUF P3lim
Code:
local function Hex(r, g, b)
if(type(r) == 'table') then
if(r.r) then r, g, b = r.r, r.g, r.b else r, g, b = unpack(r) end
end
return string.format('|cff%02x%02x%02x', r*255, g*255, b*255)
end
oUF.Tags['[colorpp]'] = function(u) local n,s = UnitPowerType(u) return Hex(colors.power[s]) end
|
Drat, my current layout did not like that. I will have to approach this from another angle I guess such as modifying yours to support my choice of fonts. Anyway, back to the ol drawing board.