View Single Post
02-14-09, 02:18 PM   #725
Zyonin
Coffee powered Kaldorei
 
Zyonin's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 1,443
Originally Posted by p3lim View Post
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.
__________________
Twitter