Merge pull request #1759 from FunkinCrew/VioletSnowLeopard/stop-test-on-exit

[PUBLIC PR] Fix Offset Calibration/Test starting after exiting the Lag Adjustment menu
This commit is contained in:
Eric
2025-09-23 20:29:50 -04:00
committed by GitHub
+6
View File
@@ -294,6 +294,9 @@ class OffsetMenu extends Page<OptionsState.OptionsMenuPageName>
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<OptionsState.OptionsMenuPageName>
// 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 = [];