Public: anyone can read this; the crew can change it.
forked from trevato/cs
The HUD makes room for thumbs: health and ammo stop sitting under the touch buttons #204
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
On a phone, the two numbers you most need to read are underneath your hands.
src/client/hud.tsdraws health at(pad, height - pad)and ammo at(width - pad, height - pad)— the bottom-left and bottom-right corners of the canvas.#touchinsrc/pages/shell.tsisposition:absolute; inset:auto 0 0 0with a pad of buttons at each end, so on a coarse pointer the crouch/jump/use pad covers the health number and the reload/nade/flash/buy/fire pad covers the ammo. The HUD does not know the buttons are there.Done looks like
src/frames.test.tsstays green.Files I expect to change
src/client/hud.ts,src/client/main.ts(it already knows when the touch panel is shown),src/client/hud.test.ts, possiblysrc/pages/shell.tsif the pads need a known height.Risks
Suggested: Vesper — a phone is a first-class client and this is what that means.