Implemented Ctrl+Enter in song menu (play with "auto" mod).

Also made 'Esc' during gameplay return to the song menu immediately if the "auto" mod is active.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-01-16 02:00:42 -05:00
parent 78aabaa43e
commit 38b3621c29
2 changed files with 16 additions and 5 deletions

View File

@@ -617,10 +617,14 @@ public class Game extends BasicGameState {
switch (key) {
case Input.KEY_ESCAPE:
// "auto" mod: go back to song menu
if (GameMod.AUTO.isActive()) {
game.closeRequested();
break;
}
// pause game
if (pauseTime < 0 && breakTime <= 0 &&
trackPosition >= osu.objects[0].getTime() &&
!GameMod.AUTO.isActive()) {
if (pauseTime < 0 && breakTime <= 0 && trackPosition >= osu.objects[0].getTime()) {
pausedMouseX = input.getMouseX();
pausedMouseY = input.getMouseY();
pausePulse = 0f;