shift logo back to center when pressing esc
This commit is contained in:
@@ -656,6 +656,12 @@ public class MainMenu extends BasicGameState {
|
|||||||
switch (key) {
|
switch (key) {
|
||||||
case Input.KEY_ESCAPE:
|
case Input.KEY_ESCAPE:
|
||||||
case Input.KEY_Q:
|
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);
|
((ButtonMenu) game.getState(Opsu.STATE_BUTTONMENU)).setMenuState(MenuState.EXIT);
|
||||||
game.enterState(Opsu.STATE_BUTTONMENU);
|
game.enterState(Opsu.STATE_BUTTONMENU);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user