~whereswaldon/pointstar

b112d9506ebe6718d7cc0b3e35b7504c2cfbf1bb — Chris Waldon 1 year, 6 months ago cee96b6
feat: prevent usernames from breaking layout
2 files changed, 2 insertions(+), 0 deletions(-)

M client/main.go
M client/skin.go
M client/main.go => client/main.go +1 -0
@@ 72,6 72,7 @@ func eventLoop(w *app.Window) error {
	ui := UIState{
		PlayerNum: -1, // indicate that it isn't set yet
	}
	ui.NameEditor.SingleLine = true
	fromServer := make(chan interface{}, 1)
	toServer := make(chan interface{}, 1)
	address := GetWSURL()

M client/skin.go => client/skin.go +1 -0
@@ 358,6 358,7 @@ func (s *Skin) LayoutPlayed(g *gamestate.GameState, playerNum int, u *UIState, g
						if player.IsPassing {
							playerName.Color.A = 155
						}
						playerName.MaxLines = 1
						playerName.Layout(gtx)
					}),
					layout.Rigid(func() {