Quantcast WoWInterface - View Single Post - Need help coloring "widget"
View Single Post
05-27-11, 09:58 AM   #5
A Wyrmkin Dreamwalker
Sauerkraut's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 52
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.

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])

	f:SetVertexColor(r, g, b)

NM I figured it out. Thanks for the help.

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