automaticyally set player name as 'Spieler'+ id+1

This commit is contained in:
Johannes Schmelz 2024-11-26 20:58:57 +01:00
parent e56cdb1dcb
commit 29cc73e83b

View File

@ -39,7 +39,7 @@ public class LobbyMenu extends Dialog {
private Container lowerLeftMenu;
private Container lowerRightMenu;
private TextField playerInputField = new TextField("Spieler 1");
private TextField playerInputField;
private TextField startingCapital = new TextField("15000");
private String figure;
@ -47,6 +47,7 @@ public class LobbyMenu extends Dialog {
super(app.getDialogManager());
this.app = app;
playerInputField = new TextField("Spieler "+app.getId()+1);
// Hintergrundbild laden und hinzufügen
addBackgroundImage();