mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-26 03:49:45 +00:00
Merge pull request #659 from FunkinCrew/feature/commas-in-score
Add commas to the score to make it more readable
This commit is contained in:
commit
dd3f41ab1b
|
@ -16,6 +16,7 @@ import flixel.tweens.FlxTween;
|
||||||
import flixel.ui.FlxBar;
|
import flixel.ui.FlxBar;
|
||||||
import flixel.util.FlxColor;
|
import flixel.util.FlxColor;
|
||||||
import flixel.util.FlxTimer;
|
import flixel.util.FlxTimer;
|
||||||
|
import flixel.util.FlxStringUtil;
|
||||||
import funkin.api.newgrounds.NGio;
|
import funkin.api.newgrounds.NGio;
|
||||||
import funkin.audio.FunkinSound;
|
import funkin.audio.FunkinSound;
|
||||||
import funkin.audio.VoicesGroup;
|
import funkin.audio.VoicesGroup;
|
||||||
|
@ -2060,7 +2061,9 @@ class PlayState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
scoreText.text = 'Score:' + songScore;
|
// TODO: Add an option for this maybe?
|
||||||
|
var commaSeparated:Bool = true;
|
||||||
|
scoreText.text = 'Score: ${FlxStringUtil.formatMoney(songScore, false, commaSeparated)}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue