From 04fffe8ade4c4b236d59a236f08534e8eede179f Mon Sep 17 00:00:00 2001 From: JVNpixels Date: Sat, 3 May 2025 10:42:34 -0700 Subject: [PATCH] Commas For Story Mode Score --- source/funkin/ui/story/StoryMenuState.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();