shift logo back to center when pressing esc

This commit is contained in:
yugecin 2016-11-13 02:35:48 +01:00
parent 38d1bdf14b
commit 11f0b8ddfb

View File

@ -656,6 +656,12 @@ public class MainMenu extends BasicGameState {
switch (key) {
case Input.KEY_ESCAPE:
case Input.KEY_Q:
if (logoTimer > 0) {
logoState = LogoState.CLOSING;
logoClose.setTime(0);
logoTimer = 0;
break;
}
((ButtonMenu) game.getState(Opsu.STATE_BUTTONMENU)).setMenuState(MenuState.EXIT);
game.enterState(Opsu.STATE_BUTTONMENU);
break;