Hey guys
I came to share a way to change the EXP label to % with decimals.
Some players know how anoying and frustrating when you get lv and it's show 315171737819273171312751358109131 of exp to next Lv.
So, i changed that to show in % with decimals, you can change many as you want.
How to do that!
Go to:
Intersect.Client
Interface
Game
EntityPanel
Open EntityBox.cs
Find: private void UpdateXpBar(float elapsedTime, bool instant = false)
Add:
var percent = targetExpWidth * 100;
ExpLbl.Text = percent == 0 ? $"{percent}%" : $"{percent:0.0000}%";
This one have four number 0 after the first number, like: 0,0000%
I just disabled the:
ExpLbl.Text = Strings.EntityBox.expval.ToString(
((Player) MyEntity)?.Experience, ((Player) MyEntity)?.GetNextLevelExperience()
);
just putting /* before and */ after
Because if i want to change back, just delete the last 2 lines and enable "ExpLbl.Text" again
Look how it is.
Before:
After:
Look how it's appear at my game. (the private void)
That's it!