From 1ac413e1d0ddc39a41374ff9b3375e6de3e1af1c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 14 Feb 2023 09:52:22 +0100 Subject: improve state bar --- go/client/startMenu.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'go/client') 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( -- cgit v1.2.3