fixed topDialog

This commit is contained in:
Johannes Schmelz 2024-12-01 15:57:33 +01:00
parent f2a6888fb2
commit 0f6205fbc7

View File

@ -54,9 +54,8 @@ public class StartMenu extends Dialog {
startButton.setTextHAlignment(HAlignment.Center); // Center the text horizontally
startButton.addClickCommands(s -> ifTopDialog(() -> {
this.close(); // Close the StartMenu dialog
app.connect(); // Perform the connection logic
app.getGameLogic().playSound(Sound.BUTTON);
app.connect(); // Perform the connection logic
}));
centerMenu.addChild(startButton);