View Single Post
09-03-15, 10:58 AM   #11
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Resike View Post
This is retarded. Why the heck they had to do this? How hard is it to calculate the percentages by themselfs?
If all you're after is getting percentages, you can do this:
Code:
local perc = hpBar:GetValue() * 100
someHealthText:SetFormattedText('%.1f%%', perc)
And use HookScript on the health bar's OnValueChanged and OnShow to update it.