mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-09-13 12:16:37 +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.setTextHAlignment(HAlignment.Center); // Center the text horizontally
|
||||||
|
|
||||||
startButton.addClickCommands(s -> ifTopDialog(() -> {
|
startButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||||
this.close(); // Close the StartMenu dialog
|
|
||||||
app.connect(); // Perform the connection logic
|
|
||||||
app.getGameLogic().playSound(Sound.BUTTON);
|
app.getGameLogic().playSound(Sound.BUTTON);
|
||||||
|
app.connect(); // Perform the connection logic
|
||||||
}));
|
}));
|
||||||
centerMenu.addChild(startButton);
|
centerMenu.addChild(startButton);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user