View Single Post
01-24-13, 09:53 PM   #11
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Code:
self.Power:HookScript("OnValueChanged", function(bar, value)
     bar.value:SetText(value)
     local r, g, b = bar:GetStatusBarColor()
     bar.value:SetTextColor(r, g, b)
end)
?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote