From f6e51ace4d6b6ca67022398adc638e55e145be99 Mon Sep 17 00:00:00 2001 From: biomseed <73907153+biomseed@users.noreply.github.com> Date: Sun, 11 Dec 2022 18:07:00 -0500 Subject: [PATCH 1/2] fix documentation --- source/funkin/system/MusicBeatState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/system/MusicBeatState.hx b/source/funkin/system/MusicBeatState.hx index 0118a2bf..aa271226 100644 --- a/source/funkin/system/MusicBeatState.hx +++ b/source/funkin/system/MusicBeatState.hx @@ -66,7 +66,7 @@ class MusicBeatState extends FlxUIState implements IBeatReceiver public var controls(get, never):Controls; /** - * Current injected script attached to the state. To add one, create a file at path "scripts/stateName" (ex: "scripts/") + * Current injected script attached to the state. To add one, create a file at path "data/states/stateName" (ex: data/states/FreeplayState) */ public var stateScript:Script; From a3e3311181ca21d7337a2e2c2b6c685dcdb9e4b9 Mon Sep 17 00:00:00 2001 From: biomseed <73907153+biomseed@users.noreply.github.com> Date: Sun, 11 Dec 2022 18:09:55 -0500 Subject: [PATCH 2/2] update comments to include hot reload --- source/scripting/GlobalScript.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/scripting/GlobalScript.hx b/source/scripting/GlobalScript.hx index 3ccca9e0..fa32bbc5 100644 --- a/source/scripting/GlobalScript.hx +++ b/source/scripting/GlobalScript.hx @@ -4,7 +4,7 @@ import flixel.FlxState; /** * A global script is a special kind of script that runs on everywhere on your mod: menus, game, etc... * - * To create one, go to data and create a script named "global", then press F5 in game. + * To create one, go to data and create a script named "global", then press F5 in game to hot reload. * * All flixel signals are automatically binded, as shown below. */ @@ -84,4 +84,4 @@ interface GlobalScript { * Aliases: `preUpdate` */ public function update(elapsed:Float):Void; -} \ No newline at end of file +}