Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Technical Support

Technical Support Ask for help or find solutions about ShestakUI.


Thread Tools
Old 20.11.2012, 18:49   #1
 Junior Member User Information

Trishya's Avatar
Question Enemy health accuracy

Hello everybody,

i've been searching through the code to find a way to have the health beyond commas but i couldn't find it...

To be clear, i'd like to have the current health of the boss like this :

Old 20.11.2012, 18:49   #1.5 - Disable Ads

Advertise on this site

Old 21.11.2012, 08:38   #2
 Junior Member User Information

Shestak's Avatar
In ShestakUI\Core\Function.lua(~574 line) find:
lua Code [Select]:
health.value:SetFormattedText("|cffffffff%d%% - %s|r", floor(min / max * 100), T.ShortValue(min))
and change to
lua Code [Select]:
health.value:SetFormattedText("|cffffffff%0.2f%% - %s|r", min / max * 100, T.ShortValue(min))
Say Thank:
m2jest1c (21.11.2012)
Old 14.03.2013, 13:06   #3
 Junior Member User Information

Ardonyx's Avatar
Hey, I couldn't find another thread on this.

I would like my unit frames to display total target health/mana without the short forms (1.2M -> 1234567, for example). I was looking in Functions.lua and saw the ShortValue function but I'm pretty new to editing lua. Please help.
Old 17.03.2013, 17:24   #4
 Junior Member User Information

Shestak's Avatar
Originally Posted by Ardonyx View Post
my unit frames
You mean only your Player health|mana value?
Old 17.03.2013, 17:35   #5
 Junior Member User Information

Ardonyx's Avatar
I was looking to have exact health values for my target frames (mostly for bosses) but then wanted everything to be consistent. For a while, I was just having problems with decimals appearing in odd places. I have now found a solution I am happy with by completely commenting out the contents of the ShortValue function in Core/Functions.lua with the exception of 'return value'.

healthbar accuracy boss

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enemy player healthbar/nameplate in class color alfa General Discussion 3 30.03.2012 09:21
[Embedded] Health Frames Alass Skinning 1 17.02.2012 00:16
[Fixed] Enemy talents spec Wetxius Bugs Reports 5 09.02.2012 16:27
Portrait on health anj General Discussion 6 12.09.2011 03:17
How to see dispellable buffs on enemy target in raids? asdor Technical Support 1 25.07.2011 13:13

Mobile Style Русский English Deutsch Italian Chinese