aboutsummaryrefslogtreecommitdiff
path: root/go/client/startMenu.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-14 09:52:22 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:49 +0100
commite049500b213c85c9d1556e01717226a191d2dce8 (patch)
treee9bbf082dc4b4360ae4c5d5ba0dbe1378c530955 /go/client/startMenu.go
parent98d0bd3d83f450228477142543b05a2ba5216449 (diff)
downloadmuhqs-game-e049500b213c85c9d1556e01717226a191d2dce8.tar.gz
muhqs-game-e049500b213c85c9d1556e01717226a191d2dce8.zip
improve state bar
Diffstat (limited to 'go/client/startMenu.go')
-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(