diff --git a/assets/data/scripts/week6-pause.hx b/assets/data/scripts/week6-pause.hx index ec9c273d..b9cd269e 100644 --- a/assets/data/scripts/week6-pause.hx +++ b/assets/data/scripts/week6-pause.hx @@ -82,7 +82,7 @@ function destroy() { var canDoShit = true; var time:Float = 0; function update(elapsed) { - pixelScript.call("updatePost", [elapsed]); + pixelScript.call("postUpdate", [elapsed]); pauseCam.alpha = lerp(pauseCam.alpha, 1, 0.25); time += elapsed; diff --git a/latest/windows/bin/assets/data/scripts/week6-pause.hx b/latest/windows/bin/assets/data/scripts/week6-pause.hx index ec9c273d..b9cd269e 100644 --- a/latest/windows/bin/assets/data/scripts/week6-pause.hx +++ b/latest/windows/bin/assets/data/scripts/week6-pause.hx @@ -82,7 +82,7 @@ function destroy() { var canDoShit = true; var time:Float = 0; function update(elapsed) { - pixelScript.call("updatePost", [elapsed]); + pixelScript.call("postUpdate", [elapsed]); pauseCam.alpha = lerp(pauseCam.alpha, 1, 0.25); time += elapsed; diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 6b47bb7a..7cccaf90 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -508,7 +508,7 @@ class PlayState extends MusicBeatState event.spriteTween = tween; event.cancelled = false; - scripts.event("onCountdownPost", event); + scripts.event("onPostCountdown", event); } public var previousFrameTime:Int = 0; @@ -1132,7 +1132,7 @@ class PlayState extends MusicBeatState if (event.__reposNote) event.strum.updateNotePosition(daNote); event.strum.updateSustain(daNote); - PlayState.instance.scripts.event("onNoteUpdatePost", event); + PlayState.instance.scripts.event("onNotePostUpdate", event); } }); @@ -1146,7 +1146,7 @@ class PlayState extends MusicBeatState endSong(); #end - scripts.call("updatePost", [elapsed]); + scripts.call("postUpdate", [elapsed]); } function endSong():Void @@ -1278,7 +1278,7 @@ class PlayState extends MusicBeatState playerStrums.forEach(function(str:Strum) { str.updatePlayerInput(pressed[str.ID], justPressed[str.ID], justReleased[str.ID]); }); - scripts.call("onKeyShitPost"); + scripts.call("onPostKeyShit"); } function noteMiss(note:Note):Void diff --git a/source/funkin/scripting/events/CountdownEvent.hx b/source/funkin/scripting/events/CountdownEvent.hx index 640860ac..ac2cd55d 100644 --- a/source/funkin/scripting/events/CountdownEvent.hx +++ b/source/funkin/scripting/events/CountdownEvent.hx @@ -32,15 +32,15 @@ class CountdownEvent extends CancellableEvent { /** - * Created sprite, only available in `onCountdownPost` + * Created sprite, only available in `onPostCountdown` */ public var sprite:FlxSprite; /** - * Created tween for the sprite, only available in `onCountdownPost` + * Created tween for the sprite, only available in `onPostCountdown` */ public var spriteTween:FlxTween; /** - * Created sound, only available in `onCountdownPost` + * Created sound, only available in `onPostCountdown` */ public var sound:FlxSound; diff --git a/source/scripting/PlayStateScript.hx b/source/scripting/PlayStateScript.hx index 9e7fbeb9..659a58e8 100644 --- a/source/scripting/PlayStateScript.hx +++ b/source/scripting/PlayStateScript.hx @@ -56,7 +56,7 @@ interface PlayStateScript { * Triggered after every countdown. * @param event Countdown event. */ - public function onCountdownPost(event:CountdownEvent):Void; + public function onPostCountdown(event:CountdownEvent):Void; /** * Triggered whenever the player hits a note.