diff --git a/source/funkin/ui/story/StoryMenuState.hx b/source/funkin/ui/story/StoryMenuState.hx index 389dfc693..646685fda 100644 --- a/source/funkin/ui/story/StoryMenuState.hx +++ b/source/funkin/ui/story/StoryMenuState.hx @@ -9,6 +9,7 @@ import flixel.tweens.FlxTween; import flixel.math.FlxMath; import flixel.util.FlxColor; import flixel.util.FlxTimer; +import flixel.util.FlxStringUtil; import funkin.audio.FunkinSound; import funkin.data.story.level.LevelRegistry; import funkin.data.song.SongRegistry; @@ -324,7 +325,8 @@ class StoryMenuState extends MusicBeatState highScoreLerp = Std.int(MathUtil.snap(MathUtil.smoothLerpPrecision(highScoreLerp, highScore, elapsed, 0.307), highScore, 1)); - scoreText.text = 'LEVEL SCORE: ${Math.round(highScoreLerp)}'; + var commaSeparated:Bool = true; + scoreText.text = 'LEVEL SCORE: ${FlxStringUtil.formatMoney(highScoreLerp, false, commaSeparated)}'; levelTitleText.text = currentLevel.getTitle();