added setPauseOnLostFocus(false)

This commit is contained in:
Cedric Beck
2024-12-02 17:28:37 +01:00
parent 41e204b1f2
commit f21fd9b0a6
4 changed files with 10 additions and 1 deletions

View File

@@ -100,7 +100,6 @@ public void onAction(String name, boolean isPressed, float tpf) {
if(diceSelect != null) {
app.getModelSynchronize().rolledDice();
gameView.getGuiHandler().hideText();
}
else if(cardLayerSelect != null) {
//cardSelect

View File

@@ -82,6 +82,7 @@ public static void main(String[] args) {
MdgaApp app = new MdgaApp();
app.setSettings(settings);
app.setShowSettings(false);
app.setPauseOnLostFocus(false);
app.start();
}

View File

@@ -148,6 +148,7 @@ private void handleGame(Notification notification) {
} else if (notification instanceof ResumeNotification) {
//TODO
} else if (notification instanceof RollDiceNotification n) {
gameView.getGuiHandler().hideText();
if(n.getColor() == gameView.getOwnColor()){
guiHandler.rollDice(n.getEyes(), n.isTurbo() ? n.getMultiplier() : -1);
}