From bf4cf78ab26896faf457273e37d30fc96381c4a4 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 21:09:56 +0100 Subject: v4.2.0: wire the GUI to the core, transport and all four games Phase 4. The egui frontend now shares ClientCore and the client database with the terminal: one background worker owns TLS, trust answers go through a channel, and a 10 s request deadline mirrors the terminal socket timeout. First contact, a changed key and a version mismatch are explicit screens; login can remember the credential and auto-login signs in before the login form appears. Adds the lobby with an update notice, a full-width scrollable history table, and the four games painted from View: slots with reel animation and win lines that stop at the last matching reel, roulette with the hover lattice and wheel spin, blackjack with vector-drawn suits, and a smooth crash curve. Sidebars pin their action block; leaving a live hand or round asks before forfeiting. The header balance holds the staked amount while the reels or wheel turn and only shows the payout when they stop. Refused spins cancel the animation. Live crash multipliers keep full precision for the chart; the terminal still displays two decimals. Verified live against a 4.2.0 server: register, login, auto-login, trust, all four games settling, history (50 rows), logout, disconnect, forfeit confirmation, and the version-mismatch screen. Release: 8.3 MB Linux, 6.8 MB Windows, 61 ms to window, 131 MB idle RSS. --- AGENTS.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 6207d7a..368a348 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -77,6 +77,14 @@ (cell centre, edge, crossing), left click adds the chip and right or middle click takes one back. The terminal keeps its arrow-key cursor; the GUI does not paint it. +- The GUI network worker (`gui/src/net.rs`) owns the TLS stream and the request + deadline; `ClientCore` stays I/O-free. One thread with channels, no async + runtime. +- Game sidebars pin their action block with `widgets::sidebar_layout`. An + action that moves as the bet slip grows is a bug. +- The embedded fonts have no suit or arrow glyphs. Draw card suits as shapes + and use plain words for navigation; a glyph that is not in Open Sans or Hack + renders as tofu. ## Client TUI - `render_lines()` and `render()` must agree. If `render()` uses `\r\n`, -- cgit v1.2.3