From 11f0b8ddfbd781fd7772f66c677d9f119c499393 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 13 Nov 2016 02:35:48 +0100 Subject: [PATCH] shift logo back to center when pressing esc --- src/itdelatrisu/opsu/states/MainMenu.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/itdelatrisu/opsu/states/MainMenu.java b/src/itdelatrisu/opsu/states/MainMenu.java index aed55520..3af1621a 100644 --- a/src/itdelatrisu/opsu/states/MainMenu.java +++ b/src/itdelatrisu/opsu/states/MainMenu.java @@ -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;