Fix showing on-screen keyboard
This commit is contained in:
parent
f5e7e6ee10
commit
0a1a051150
5 changed files with 16 additions and 14 deletions
|
@ -1,6 +1,7 @@
|
|||
1.1.3:
|
||||
- Support spectating matches
|
||||
- Highlight available moves using both dice
|
||||
- Optimize drawing user interface
|
||||
|
||||
1.1.2:
|
||||
- Support moving checkers by clicking instead of dragging
|
||||
|
|
|
@ -36,7 +36,7 @@ import (
|
|||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
const version = "v1.1.2p4"
|
||||
const version = "v1.1.3"
|
||||
|
||||
const MaxDebug = 2
|
||||
|
||||
|
@ -1110,6 +1110,9 @@ func (g *Game) handleTouch(p image.Point) {
|
|||
btn = g.lobby.showKeyboardButton
|
||||
} else {
|
||||
btn = g.Board.showKeyboardButton
|
||||
g.Board.lastKeyboardToggle = time.Now()
|
||||
g.Board.floatChatGrid.SetVisible(true)
|
||||
g.Board.floatChatGrid.SetRect(g.Board.floatChatGrid.Rect())
|
||||
}
|
||||
btn.Label.SetText(gotext.Get("Hide Keyboard"))
|
||||
}
|
||||
|
|
|
@ -362,14 +362,12 @@ func (l *lobby) drawBuffer() {
|
|||
var status string
|
||||
for _, entry := range l.games {
|
||||
if i >= l.offset {
|
||||
if entry.Players == 2 {
|
||||
status = gotext.Get("Full")
|
||||
if entry.Password {
|
||||
status = gotext.Get("Private")
|
||||
} else if entry.Players == 2 {
|
||||
status = gotext.Get("Started")
|
||||
} else {
|
||||
if !entry.Password {
|
||||
status = gotext.Get("Open")
|
||||
} else {
|
||||
status = gotext.Get("Private")
|
||||
}
|
||||
status = gotext.Get("Public")
|
||||
}
|
||||
|
||||
drawEntry(cx+l.padding, cy+l.padding, status, strconv.Itoa(entry.Points), entry.Name, i == l.selected, false)
|
||||
|
|
4
go.mod
4
go.mod
|
@ -3,10 +3,10 @@ module code.rocket9labs.com/tslocum/boxcars
|
|||
go 1.17
|
||||
|
||||
require (
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231117011217-28ba643bf994
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231117193704-e8fb2fd4d297
|
||||
code.rocket9labs.com/tslocum/etk v0.0.0-20231111061733-ffdef73ac8fb
|
||||
code.rocketnine.space/tslocum/kibodo v1.0.2
|
||||
code.rocketnine.space/tslocum/messeji v1.0.6-0.20231108225635-7a691903039e
|
||||
code.rocketnine.space/tslocum/messeji v1.0.6-0.20231118003111-cee763ff9d73
|
||||
github.com/hajimehoshi/ebiten/v2 v2.6.2
|
||||
github.com/leonelquinteros/gotext v1.5.3-0.20231003122255-12a99145a351
|
||||
github.com/llgcode/draw2d v0.0.0-20231022063514-1acb54133d2a
|
||||
|
|
8
go.sum
8
go.sum
|
@ -1,11 +1,11 @@
|
|||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231117011217-28ba643bf994 h1:4KGAaJ8AupuEf5oyIT05NOhIYH1VOtuLgIX71E1MWAI=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231117011217-28ba643bf994/go.mod h1:NIwLSiHvXFJPJ6loPWJWb3esPaZT8Qk27hO6Tzassb4=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231117193704-e8fb2fd4d297 h1:97aKJ+haXxuIfK0nhg06sg9I20R+fFLbjuXg43VUjtk=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231117193704-e8fb2fd4d297/go.mod h1:NIwLSiHvXFJPJ6loPWJWb3esPaZT8Qk27hO6Tzassb4=
|
||||
code.rocket9labs.com/tslocum/etk v0.0.0-20231111061733-ffdef73ac8fb h1:CJgcS7SZi9ICZNCs1Hz6+YpajvCHmzyqY38xl+2z8h8=
|
||||
code.rocket9labs.com/tslocum/etk v0.0.0-20231111061733-ffdef73ac8fb/go.mod h1:mwrZqZLdxJhtbWKcuX3Ym06fFr1yqWH8FMXG5wHJ/KU=
|
||||
code.rocketnine.space/tslocum/kibodo v1.0.2 h1:0RfvVz+IUku8MFx9wvDb+p8byns5gAjQLUo4ZenWP44=
|
||||
code.rocketnine.space/tslocum/kibodo v1.0.2/go.mod h1:mAYs1JKFnWlRFzo9BtteAlwjKdk1MIKgEyhQaPdeQDI=
|
||||
code.rocketnine.space/tslocum/messeji v1.0.6-0.20231108225635-7a691903039e h1:8NByMX1dSs69cmfzHbudEfU9qmcMNl3V2+/RnyLaxm4=
|
||||
code.rocketnine.space/tslocum/messeji v1.0.6-0.20231108225635-7a691903039e/go.mod h1:DVSVJUFs9QkKxnGOhk6RSM1q6XcYsMOHqdsLVA7sotQ=
|
||||
code.rocketnine.space/tslocum/messeji v1.0.6-0.20231118003111-cee763ff9d73 h1:k8Y6mMzxTN6fbfl8mCCdKn1lcYj8wh5y0/wFeJqm4z4=
|
||||
code.rocketnine.space/tslocum/messeji v1.0.6-0.20231118003111-cee763ff9d73/go.mod h1:9hzkp+tOkEjCWqOwS1FfAwbbyZtndk6H1ZvhGq4aD6Q=
|
||||
github.com/ebitengine/oto/v3 v3.1.0 h1:9tChG6rizyeR2w3vsygTTTVVJ9QMMyu00m2yBOCch6U=
|
||||
github.com/ebitengine/oto/v3 v3.1.0/go.mod h1:IK1QTnlfZK2GIB6ziyECm433hAdTaPpOsGMLhEyEGTg=
|
||||
github.com/ebitengine/purego v0.5.0 h1:JrMGKfRIAM4/QVKaesIIT7m/UVjTj5GYhRSQYwfVdpo=
|
||||
|
|
Loading…
Reference in a new issue