diff options
Diffstat (limited to 'go/client')
| -rw-r--r-- | go/client/startMenu.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/go/client/startMenu.go b/go/client/startMenu.go index 9d5d6129..234a1570 100644 --- a/go/client/startMenu.go +++ b/go/client/startMenu.go @@ -43,18 +43,18 @@ func (m *StartMenu) build() { playerLabel.Bg = color.Black m.widgets = append(m.widgets, playerLabel) - playerInputLabel := "player name" - if m.playerName != "" { - playerInputLabel = m.playerName - } - playerInput := ui.NewTextInput( (m.width-START_BUTTON_WIDTH)/2, (m.height-START_BUTTON_HEIGHT)/2-START_BUTTON_HEIGHT, START_BUTTON_WIDTH, START_BUTTON_HEIGHT, - playerInputLabel, + "player name", ) + + if m.playerName != "" { + playerInput.AddInput([]rune(m.playerName)) + } + m.widgets = append(m.widgets, playerInput) m.widgets = append(m.widgets, ui.NewSimpleButton( |
