Hide cursor when playtesting chart

This commit is contained in:
AwesomezPro99
2025-09-29 18:26:22 +08:00
committed by Hundrec
parent 2f77ccfc6e
commit 047187257b
@@ -3534,7 +3534,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
// Show the mouse cursor. // Show the mouse cursor.
// Just throwing this somewhere convenient and infrequently called because sometimes Flixel's debug thing hides the cursor. // Just throwing this somewhere convenient and infrequently called because sometimes Flixel's debug thing hides the cursor.
Cursor.show(); if (this.subState == null) Cursor.show();
return true; return true;
} }
@@ -6181,6 +6181,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
this.persistentDraw = false; this.persistentDraw = false;
stopWelcomeMusic(); stopWelcomeMusic();
Cursor.hide();
LoadingState.loadPlayState(targetStateParams, false, true, function(targetState) { LoadingState.loadPlayState(targetStateParams, false, true, function(targetState) {
targetState.vocals = audioVocalTrackGroup; targetState.vocals = audioVocalTrackGroup;
}); });
@@ -6583,6 +6585,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
fadeInWelcomeMusic(WELCOME_MUSIC_FADE_IN_DELAY, WELCOME_MUSIC_FADE_IN_DURATION); fadeInWelcomeMusic(WELCOME_MUSIC_FADE_IN_DELAY, WELCOME_MUSIC_FADE_IN_DURATION);
Cursor.show();
// Reapply the volume and playback rate. // Reapply the volume and playback rate.
var instTargetVolume:Float = (menubarItemVolumeInstrumental.value / 100.0) ?? 1.0; var instTargetVolume:Float = (menubarItemVolumeInstrumental.value / 100.0) ?? 1.0;
var vocalPlayerTargetVolume:Float = (menubarItemVolumeVocalsPlayer.value / 100.0) ?? 1.0; var vocalPlayerTargetVolume:Float = (menubarItemVolumeVocalsPlayer.value / 100.0) ?? 1.0;