aboutsummaryrefslogtreecommitdiff
path: root/go/client
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-08-20 15:50:09 +0200
commit1ac413e1d0ddc39a41374ff9b3375e6de3e1af1c (patch)
tree23f6a6475340ea52026d2dea117e33c28b3a9df1 /go/client
parent97d5079e68624f842938e4c87386752f1cfda649 (diff)
downloadmuhqs-game-1ac413e1d0ddc39a41374ff9b3375e6de3e1af1c.tar.gz
muhqs-game-1ac413e1d0ddc39a41374ff9b3375e6de3e1af1c.zip
improve state bar
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(