WoWInterface - View Single Post - PTR 6.2.2 Nameplate changes
View Single Post
09-03-15, 10:58 AM   #11
A Pyroguard Emberseer
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,705
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:
local perc = hpBar:GetValue() * 100
someHealthText:SetFormattedText('%.1f%%', perc)
And use HookScript on the health bar's OnValueChanged and OnShow to update it.