Can i use "power.colorPower = true" on a texture other than the powerbar that updates based on the druidform.
this is what I have now, it works as long as I'm in the same stance as when I reloaded.
but as soon I change form the color will not change (from yellow to red and so on)
Lua Code:
local powerType, powerToken = UnitPowerType("player")
local powerColor = PowerBarColor[powerToken]
local EventFrame = CreateFrame("Frame")
EventFrame:RegisterEvent("UNIT_" .. powerToken)
and I use this to set the color
Lua Code:
rt2:SetVertexColor(powerColor.r, powerColor.g, powerColor.b)
So I was wondering if there is another code I could use that will update when I changes form
*edit: also I get a errormessage when I log in, and it is gone after a /reload