From de6d2c461500ec79b0f72c4d878785e85345e190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Sun, 1 Sep 2024 04:18:30 +0200 Subject: [PATCH] Update StoryMenuState.hx --- source/funkin/menus/StoryMenuState.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/funkin/menus/StoryMenuState.hx b/source/funkin/menus/StoryMenuState.hx index 98ee5c44..b5230e3d 100644 --- a/source/funkin/menus/StoryMenuState.hx +++ b/source/funkin/menus/StoryMenuState.hx @@ -15,6 +15,9 @@ class StoryMenuState extends MusicBeatState { public var characters:Map = []; public var weeks:Array = []; + // yes it supports parameters - Nex + public var scoreMessage:String = "WEEK SCORE:{0}"; + public var scoreText:FlxText; public var tracklist:FlxText; public var weekTitle:FlxText; @@ -126,7 +129,7 @@ class StoryMenuState extends MusicBeatState { super.update(elapsed); lerpScore = lerp(lerpScore, intendedScore, 0.5); - scoreText.text = 'WEEK SCORE:${Math.round(lerpScore)}'; + scoreText.text = scoreMessage.replace("{0}", Std.string(Math.round(lerpScore))); if (canSelect) { if (leftArrow != null && leftArrow.exists) leftArrow.animation.play(controls.LEFT ? 'press' : 'idle');