From 23a38f76f9c79c5fab5b9af5e2d98e51597e05a8 Mon Sep 17 00:00:00 2001 From: VioletSnowLeopard Date: Sun, 21 Sep 2025 12:41:57 -0400 Subject: [PATCH] Don't start calibration/test if no longer in offset menu --- source/funkin/ui/options/OffsetMenu.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/funkin/ui/options/OffsetMenu.hx b/source/funkin/ui/options/OffsetMenu.hx index 908b76442..dd3251cad 100644 --- a/source/funkin/ui/options/OffsetMenu.hx +++ b/source/funkin/ui/options/OffsetMenu.hx @@ -294,6 +294,9 @@ class OffsetMenu extends Page createButtonItem('Offset Calibration', function() { // Reset calibration state and start another one. + @:privateAccess + if (OptionsState.instance.optionsCodex.currentPage != this) return; + jumpInText.text = 'Press any key to the beat!\nThe arrow will start to sync to the receptor.'; #if mobile jumpInText.text = 'Tap to the beat!\nThe arrow will start to sync to the receptor.'; @@ -327,6 +330,9 @@ class OffsetMenu extends Page // Reset testing state and start another one. // We do not reset the offset here, so the player can test their current offset. + @:privateAccess + if (OptionsState.instance.optionsCodex.currentPage != this) return; + shouldOffset = 1; testStrumline.clean(); testStrumline.noteData = [];