Quantcast WoWInterface - View Single Post - PTR 6.2.2 Nameplate changes
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,669
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.