mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-07-31 09:27:42 +02:00
fixed topDialog
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user