diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-01 19:58:59 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-01 19:58:59 +0100 |
| commit | 10ff558853f549d3f3c7c8432488bfad9da6973a (patch) | |
| tree | 271b05fead384e2d91e5c8332fea9d00b540f0cc /gui/src/lib.rs | |
| parent | v4.0.7: finish the Phase 1 boundary with a command shell (diff) | |
| download | zagan-bet-10ff558853f549d3f3c7c8432488bfad9da6973a.tar.gz zagan-bet-10ff558853f549d3f3c7c8432488bfad9da6973a.zip | |
v4.1.0: add the egui workspace member and the roulette style spike
Phase 3 of the GUI plan. gui/ is a separate package that depends on the core with default features off, so egui never enters the TUI or server build graph. It carries the theme tokens and two embedded fonts (Open Sans OFL, Hack MIT), paints the felt, chips, cursor and wheel from RouletteView, and composes the persistent header with the betting sidebar.
The reference screen runs on demo state: arrow keys move the shared Cursor, clicks place chips, and SPIN animates a 2.4 s wheel that settles with the winning pocket under the pointer. No network until Phase 4.
Verified x86_64-pc-windows-gnu cross-compile. Measured on Linux at 1080p with llvmpipe: 6.0 MB binary (4.7 MB on Windows), 52 ms to window, 137 MB idle RSS, 0% idle CPU.
Diffstat (limited to 'gui/src/lib.rs')
| -rw-r--r-- | gui/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/lib.rs b/gui/src/lib.rs new file mode 100644 index 0000000..e0f5bc9 --- /dev/null +++ b/gui/src/lib.rs | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | //! Desktop frontend for zagan-bet. | ||
| 2 | //! | ||
| 3 | //! The window is a thin shell over the shared `ClientCore` (Phase 4). This | ||
| 4 | //! crate holds only presentation: the theme, the roulette table, and the app | ||
| 5 | //! layout. It never enters the TUI or server build graph. | ||
| 6 | |||
| 7 | pub mod app; | ||
| 8 | pub mod roulette; | ||
| 9 | pub mod theme; | ||
