mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Prevent showing menu if overlay open
This commit is contained in:
@@ -109,8 +109,10 @@ public class Forge implements ApplicationListener {
|
|||||||
public static void showMenu() {
|
public static void showMenu() {
|
||||||
if (currentScreen == null) { return; }
|
if (currentScreen == null) { return; }
|
||||||
endKeyInput(); //end key input before menu shown
|
endKeyInput(); //end key input before menu shown
|
||||||
|
if (FOverlay.getTopOverlay() == null) { //don't show menu if overlay open
|
||||||
currentScreen.showMenu();
|
currentScreen.showMenu();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void back() {
|
public static void back() {
|
||||||
if (screens.size() < 2) { return; } //don't allow going back from initial screen
|
if (screens.size() < 2) { return; } //don't allow going back from initial screen
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ public class MatchScreen extends FScreen {
|
|||||||
case Keys.ESCAPE:
|
case Keys.ESCAPE:
|
||||||
return prompt.getBtnCancel().trigger(); //otherwise trigger Cancel
|
return prompt.getBtnCancel().trigger(); //otherwise trigger Cancel
|
||||||
case Keys.BACK:
|
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;
|
return true;
|
||||||
case Keys.A: //alpha strike on Ctrl+A
|
case Keys.A: //alpha strike on Ctrl+A
|
||||||
if (KeyInputAdapter.isCtrlKeyDown()) {
|
if (KeyInputAdapter.isCtrlKeyDown()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user