From ff9b5f71c30ff7a3b804be6ac0736a5e4d53b0ca Mon Sep 17 00:00:00 2001 From: Frakist <90983918+Frakist@users.noreply.github.com> Date: Sun, 28 Jan 2024 10:46:52 +0200 Subject: [PATCH] Custom Values . --- source/funkin/backend/chart/ChartData.hx | 1 + source/funkin/editors/charter/CharterStrumline.hx | 2 +- source/funkin/game/PlayState.hx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/backend/chart/ChartData.hx b/source/funkin/backend/chart/ChartData.hx index c0384c41..fc293475 100644 --- a/source/funkin/backend/chart/ChartData.hx +++ b/source/funkin/backend/chart/ChartData.hx @@ -26,6 +26,7 @@ typedef ChartMetaData = { public var ?difficulties:Array; public var ?coopAllowed:Bool; public var ?opponentModeAllowed:Bool; + public var ?customValues:Dynamic; // NOT TO BE EXPORTED public var ?parsedColor:FlxColor; diff --git a/source/funkin/editors/charter/CharterStrumline.hx b/source/funkin/editors/charter/CharterStrumline.hx index d884b66d..dd1fad8b 100644 --- a/source/funkin/editors/charter/CharterStrumline.hx +++ b/source/funkin/editors/charter/CharterStrumline.hx @@ -37,7 +37,7 @@ class CharterStrumline extends UISprite { healthIcons = new FlxSpriteGroup(x, y); - for (icon in icons) { + for (i=>icon in icons) { var healthIcon = new HealthIcon(icon); healthIcon.scale.x = healthIcon.scale.y = 0.6 - (icons.length / 20); healthIcon.updateHitbox(); diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index d1e56f7a..a21606dc 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -657,6 +657,7 @@ class PlayState extends MusicBeatState splashHandler = new SplashHandler(); add(splashHandler); + scripts.set("SONG", SONG); scripts.load(); scripts.call("create"); #end