Fix error
This commit is contained in:
@@ -80,6 +80,9 @@ public void confirm() {
|
||||
} else {
|
||||
throw new RuntimeException("nothing to confirm");
|
||||
}
|
||||
|
||||
GameView gameView = (GameView) app.getView();
|
||||
gameView.noConfirm();
|
||||
}
|
||||
|
||||
public void selectTsk(Color color) {
|
||||
@@ -142,6 +145,7 @@ public void enter(MdgaState state) {
|
||||
GameView gameView = (GameView) app.getView();
|
||||
|
||||
//app.getNotificationSynchronizer().addTestNotification(new DrawCardNotification(Color.AIRFORCE, BonusCard.SHIELD));
|
||||
selectPiece(UUID.randomUUID());
|
||||
}
|
||||
|
||||
if (state == MdgaState.LOBBY) {
|
||||
|
||||
@@ -46,9 +46,9 @@ public GameView(MdgaApp app) {
|
||||
super(app);
|
||||
|
||||
cheatButton = new ButtonRight(app, settingsNode, () -> app.getModelSyncronizer().enter(MdgaState.CEREMONY), "CHEAT", 1);
|
||||
|
||||
leaveButton = new ButtonLeft(app, settingsNode, () -> app.getModelSyncronizer().leave(), "Spiel verlassen", 1);
|
||||
confirmButton = new ButtonRight(app, settingsNode, () -> app.getModelSyncronizer().confirm(), "Bestätigen", 1);
|
||||
|
||||
confirmButton = new ButtonRight(app, guiNode, () -> app.getModelSyncronizer().confirm(), "Bestätigen", 1);
|
||||
|
||||
fpp = new FilterPostProcessor(app.getAssetManager());
|
||||
this.camera = new CameraHandler(app, fpp);
|
||||
|
||||
Reference in New Issue
Block a user