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);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,14 @@ public class RollDiceNotification extends Notification{
|
||||
* @param color the color of the player that rolled the die.
|
||||
* @param eyes the number of eyes that were rolled.
|
||||
*/
|
||||
public RollDiceNotification(Color color, int eyes) {
|
||||
this.color = color;
|
||||
this.eyes = eyes;
|
||||
this.turbo = false;
|
||||
this.multiplier = -1;
|
||||
this.isRanking = false;
|
||||
}
|
||||
|
||||
public RollDiceNotification(Color color, int eyes, boolean isRanking) {
|
||||
this.color = color;
|
||||
this.eyes = eyes;
|
||||
|
||||
Reference in New Issue
Block a user