Health Units Change
Nui Shows health as for e.g. 140000 or 13000000i want it to round the numbers to like blizzard used to have them 140k or 13M... any help would be appreciated
I can't see where exactly the code is to change it but the nearest I saw was this in nUI_UnitHealth.lua
frame.configText( frame.cur, frame.options.cur_health );
frame.configText( frame.max, frame.options.max_health );
frame.configText( frame.pct, frame.options.pct_health );
frame.configText( frame.mix, frame.options.mix_health );
But I can't see where configText is to see what that is doing with the values being passed.
I was thinking about working on the same idea, and while poking around I found this in nUI_UnitFrame.lua. It might be what you're looking for, Xrystal.
Maybe, but this is just for the tooltip itself and not the permanent text overlay but it might help me track down where the formatting is.
Good to see though that Scott already incorporated checks for divide by zero wrongness which could explain why I have only seen one occurence of it so far with the PTR 4.3 changes.
|All times are GMT -6. The time now is 06:59 AM.|
vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC