aboutsummaryrefslogtreecommitdiff
path: root/go/client/startMenu.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-01 18:46:32 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:45 +0100
commit21a87ffccae9950580a240180fd3703768ef450e (patch)
tree1cb83289216bd1e213d417812b4e09001ca89c09 /go/client/startMenu.go
parent3fd15c9b83fff074b588ff9688f9e49aab38cd32 (diff)
downloadmuhqs-game-21a87ffccae9950580a240180fd3703768ef450e.tar.gz
muhqs-game-21a87ffccae9950580a240180fd3703768ef450e.zip
intermediate commit
Diffstat (limited to 'go/client/startMenu.go')
-rw-r--r--go/client/startMenu.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/go/client/startMenu.go b/go/client/startMenu.go
index 07c4f92b..735753b0 100644
--- a/go/client/startMenu.go
+++ b/go/client/startMenu.go
@@ -10,12 +10,12 @@ import (
)
const (
- START_BUTTON_WIDTH = 150
+ START_BUTTON_WIDTH = 150
START_BUTTON_HEIGHT = 50
)
type StartMenu struct {
- app *app
+ app *app
width, height int
playerName string
@@ -31,10 +31,10 @@ func NewStartMenu(app *app) *StartMenu {
return m
}
-func (m *StartMenu) build () {
+func (m *StartMenu) build() {
m.widgets = append(m.widgets, ui.NewSimpleButton(
- (m.width - START_BUTTON_WIDTH) / 2,
- (m.height - START_BUTTON_HEIGHT) / 2,
+ (m.width-START_BUTTON_WIDTH)/2,
+ (m.height-START_BUTTON_HEIGHT)/2,
150,
50,
"Start",