I'm stumped. I'm sure I am doing something stupid but I can't figure it out. I found and example of a similar postupdate in Dawn's oUF_Nivea but I can't get it to work.
Code:
local PostUpdatePower = function(f, event, unit, Power)
local _, ptype = UnitPowerType("player")
if(oUF.colors.power[ptype]) then
r, g, b = unpack(oUF.colors.power[ptype])
end
f:SetVertexColor(r, g, b)
end
NM I figured it out. Thanks for the help.