View Single Post
Unread 05-27-11, 09:58 AM   #5
Sauerkraut
A Cyclonian
 
Sauerkraut's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 46
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.

Last edited by Sauerkraut : 05-27-11 at 10:29 AM.
Sauerkraut is offline   Reply With Quote