Interrupt OsuParser by pressing 'ESC' in Splash state.
Allows parsing only a subset of OsuFiles, in case parsing takes too long. Other changes: - Press 'ESC' three times to exit from the Splash state. - Override Container.exit(). - Reset MusicController in closeRequested() to prevent an OpenAL error. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -397,11 +397,8 @@ public class MainMenu extends BasicGameState {
|
||||
if (logo.contains(x, y) || playButton.contains(x, y)) {
|
||||
SoundController.playSound(SoundEffect.MENUHIT);
|
||||
game.enterState(Opsu.STATE_SONGMENU, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
|
||||
} else if (exitButton.contains(x, y)) {
|
||||
Options.saveOptions();
|
||||
Opsu.closeSocket();
|
||||
} else if (exitButton.contains(x, y))
|
||||
container.exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user