Hello,
I have my own way i like to display hp on target focus etc. Below is the script that i use, thing is if target/focus is dead it will keep displaying 0% over DEAD text. Can someone fix this for target/focus, if they are dead to stop displaying it. THX!
http://i.imgur.com/LfZizjh.jpg
Code:
hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(f,t,v,_,x)
if f==TargetFrameHealthBar or f==FocusFrameHealthBar or f==PlayerFrameHealthBar then
local V,z,Z=v,1000 Z=z*z
local F=format
v = (v>Z and F("%.2fM",v/Z)) or (v>(z*10) and F("%.0fk",v/z)) or v
t:SetText(F("%s (%.0f%%)",v,V*100/x))
end
end)