Fix error

This commit is contained in:
Felix Koppe
2024-11-30 11:19:54 +01:00
parent 28a2c9a448
commit 36d31e99e9
2 changed files with 6 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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);