mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 04:56:15 +01:00
fixed topDialog
This commit is contained in:
parent
f2a6888fb2
commit
0f6205fbc7
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user