1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-27 07:17:20 +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:
Cameron Taylor 2024-07-11 18:36:35 -04:00 committed by GitHub
commit dd3f41ab1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,7 @@ import flixel.tweens.FlxTween;
import flixel.ui.FlxBar;
import flixel.util.FlxColor;
import flixel.util.FlxTimer;
import flixel.util.FlxStringUtil;
import funkin.api.newgrounds.NGio;
import funkin.audio.FunkinSound;
import funkin.audio.VoicesGroup;
@ -2060,7 +2061,9 @@ class PlayState extends MusicBeatSubState
}
else
{
scoreText.text = 'Score:' + songScore;
// TODO: Add an option for this maybe?
var commaSeparated:Bool = true;
scoreText.text = 'Score: ${FlxStringUtil.formatMoney(songScore, false, commaSeparated)}';
}
}