Add version information to connect dialog
This commit is contained in:
parent
321665a1ba
commit
29bc2feb4b
2 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
1.0.3:
|
||||
- Add connect button
|
||||
- Add touch input support
|
||||
- Add version information to connect dialog
|
||||
- Change layout based on portrait or landscape view
|
||||
- Automatically refresh match listings
|
||||
- Automatically reconnect
|
||||
|
|
|
@ -29,6 +29,8 @@ import (
|
|||
"golang.org/x/image/font/opentype"
|
||||
)
|
||||
|
||||
const version = "v1.0.3"
|
||||
|
||||
const MaxDebug = 1
|
||||
|
||||
var onlyNumbers = regexp.MustCompile(`[0-9]+`)
|
||||
|
@ -482,6 +484,10 @@ func NewGame() *Game {
|
|||
|
||||
infoLabel := etk.NewText("To log in as a guest, enter a username (if you want) and do not enter a password.")
|
||||
|
||||
footerLabel := etk.NewText("Boxcars " + version)
|
||||
footerLabel.SetHorizontal(messeji.AlignEnd)
|
||||
footerLabel.SetVertical(messeji.AlignEnd)
|
||||
|
||||
g.connectUsername = etk.NewInput("", "", func(text string) (handled bool) {
|
||||
return false
|
||||
})
|
||||
|
@ -504,6 +510,7 @@ func NewGame() *Game {
|
|||
grid.AddChildAt(connectButton, 2, 3, 1, 1)
|
||||
grid.AddChildAt(g.connectKeyboardButton, 3, 3, 1, 1)
|
||||
grid.AddChildAt(infoLabel, 1, 4, 3, 1)
|
||||
grid.AddChildAt(footerLabel, 1, 5, 3, 1)
|
||||
connectGrid = grid
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue