fixed esc menu

This commit is contained in:
Johannes Schmelz 2024-11-25 00:52:10 +01:00
parent 21914a1294
commit c87406f60e
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ public class LobbyMenu extends Dialog {
readyButton.setPreferredSize(new Vector3f(200, 60, 0)); // Set size to match the appearance in the image
readyButton.setFontSize(18); // Adjust font size
readyButton.setBackground(new QuadBackgroundComponent(ColorRGBA.Green)); // Add color to match the style
readyButton.addClickCommands(source -> toggleReady(null)); // Add functionality
readyButton.addClickCommands(source -> toggleReady()); // Add functionality
lowerRightMenu.addChild(readyButton);
// Position the container near the bottom-right corner
@ -204,7 +204,7 @@ public class LobbyMenu extends Dialog {
/**
* Schaltet den "Bereit"-Status um.
*/
private void toggleReady(Label playersLabel) {
private void toggleReady() {
app.getGameLogic().send(new PlayerReady(true, playerInputField.getText(), figure, Integer.parseInt(startingCapital.getText())));
}

View File

@ -117,7 +117,7 @@ public class StartMenu extends Dialog {
@Override
public void escape() {
close();
super.close();
}
@Override