added setPauseOnLostFocus(false)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user