Prevent showing menu if overlay open

This commit is contained in:
drdev
2014-05-14 00:03:24 +00:00
parent ce0eb099ee
commit 499ae40026
2 changed files with 4 additions and 2 deletions

View File

@@ -109,7 +109,9 @@ public class Forge implements ApplicationListener {
public static void showMenu() {
if (currentScreen == null) { return; }
endKeyInput(); //end key input before menu shown
currentScreen.showMenu();
if (FOverlay.getTopOverlay() == null) { //don't show menu if overlay open
currentScreen.showMenu();
}
}
public static void back() {

View File

@@ -182,7 +182,7 @@ public class MatchScreen extends FScreen {
case Keys.ESCAPE:
return prompt.getBtnCancel().trigger(); //otherwise trigger Cancel
case Keys.BACK:
FControl.undoLastAction(); //let back trigger undo instead of going back a screen
FControl.undoLastAction(); //let Back trigger undo instead of going back a screen
return true;
case Keys.A: //alpha strike on Ctrl+A
if (KeyInputAdapter.isCtrlKeyDown()) {