aboutsummaryrefslogtreecommitdiff
path: root/go/client
diff options
context:
space:
mode:
Diffstat (limited to 'go/client')
-rw-r--r--go/client/startMenu.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/go/client/startMenu.go b/go/client/startMenu.go
index 234a1570..8f149f8b 100644
--- a/go/client/startMenu.go
+++ b/go/client/startMenu.go
@@ -33,14 +33,13 @@ func NewStartMenu(app *app) *StartMenu {
}
func (m *StartMenu) build() {
- playerLabel := ui.NewCenteringFixedTextBox(
+ playerLabel := ui.NewFixedTextBox(
(m.width-START_BUTTON_WIDTH)/2-START_BUTTON_WIDTH,
(m.height-START_BUTTON_HEIGHT)/2-START_BUTTON_HEIGHT,
START_BUTTON_WIDTH,
START_BUTTON_HEIGHT,
"name:",
- )
- playerLabel.Bg = color.Black
+ ).Centering(true).Bg(color.Black)
m.widgets = append(m.widgets, playerLabel)
playerInput := ui.NewTextInput(