diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-01 21:24:48 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-01 21:24:48 +0100 |
| commit | a5ea79739783682c46983d5b67b2b4b7b5338ccb (patch) | |
| tree | d7e06cacfffdb173e8b27bcca426d6bbdd152ee3 /gui/src/roulette.rs | |
| parent | v4.2.0: wire the GUI to the core, transport and all four games (diff) | |
| download | zagan-bet-a5ea79739783682c46983d5b67b2b4b7b5338ccb.tar.gz zagan-bet-a5ea79739783682c46983d5b67b2b4b7b5338ccb.zip | |
v4.2.1: plain-language game copy and a balance fetch on login
The lobby and every game screen now speak to a player, not an operator: each game has one how-to sentence, and the table headers, limits, RTP, paytable and server-timing notes are gone. The account and balance are fetched whenever a session signs in, including stored-credential auto-login, so the header is filled before the lobby appears.
Diffstat (limited to '')
| -rw-r--r-- | gui/src/roulette.rs | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/gui/src/roulette.rs b/gui/src/roulette.rs index c791693..0100d1e 100644 --- a/gui/src/roulette.rs +++ b/gui/src/roulette.rs | |||
| @@ -730,11 +730,7 @@ fn sidebar( | |||
| 730 | .font(theme::sans(22.0)) | 730 | .font(theme::sans(22.0)) |
| 731 | .color(theme::TEXT), | 731 | .color(theme::TEXT), |
| 732 | ); | 732 | ); |
| 733 | ui.label( | 733 | super::widgets::note(ui, "Pick numbers or colours, then spin."); |
| 734 | eframe::egui::RichText::new("European · single zero") | ||
| 735 | .font(theme::sans(12.0)) | ||
| 736 | .color(theme::TEXT_DIM), | ||
| 737 | ); | ||
| 738 | 734 | ||
| 739 | ui.add_space(theme::SPACE_4); | 735 | ui.add_space(theme::SPACE_4); |
| 740 | let wheel_size = ui.available_width().min(210.0); | 736 | let wheel_size = ui.available_width().min(210.0); |
| @@ -906,29 +902,7 @@ fn sidebar( | |||
| 906 | fn board(ui: &mut Ui, view: &RouletteView, fx: &Fx) -> Option<zagan_bet::client::view::Command> { | 902 | fn board(ui: &mut Ui, view: &RouletteView, fx: &Fx) -> Option<zagan_bet::client::view::Command> { |
| 907 | use zagan_bet::client::view::Command; | 903 | use zagan_bet::client::view::Command; |
| 908 | 904 | ||
| 909 | ui.horizontal(|ui| { | 905 | ui.add_space(theme::SPACE_2); |
| 910 | ui.label( | ||
| 911 | eframe::egui::RichText::new("Table 01") | ||
| 912 | .font(theme::sans(15.0)) | ||
| 913 | .color(theme::TEXT), | ||
| 914 | ); | ||
| 915 | ui.label( | ||
| 916 | eframe::egui::RichText::new("European · single zero") | ||
| 917 | .font(theme::sans(12.0)) | ||
| 918 | .color(theme::TEXT_DIM), | ||
| 919 | ); | ||
| 920 | ui.with_layout( | ||
| 921 | eframe::egui::Layout::right_to_left(eframe::egui::Align::Center), | ||
| 922 | |ui| { | ||
| 923 | ui.label( | ||
| 924 | eframe::egui::RichText::new("Limits 10 – 500 Kr") | ||
| 925 | .font(theme::mono(12.0)) | ||
| 926 | .color(theme::TEXT_FAINT), | ||
| 927 | ); | ||
| 928 | }, | ||
| 929 | ); | ||
| 930 | }); | ||
| 931 | ui.add_space(theme::SPACE_4); | ||
| 932 | 906 | ||
| 933 | let strip_height = 104.0; | 907 | let strip_height = 104.0; |
| 934 | let available = ui.available_size(); | 908 | let available = ui.available_size(); |
| @@ -968,11 +942,9 @@ fn board(ui: &mut Ui, view: &RouletteView, fx: &Fx) -> Option<zagan_bet::client: | |||
| 968 | }); | 942 | }); |
| 969 | ui.add_space(theme::SPACE_2); | 943 | ui.add_space(theme::SPACE_2); |
| 970 | ui.label( | 944 | ui.label( |
| 971 | eframe::egui::RichText::new( | 945 | eframe::egui::RichText::new("Click to place a chip · right-click to take one back") |
| 972 | "Click to place · right or middle click takes back · C clears · space spins", | 946 | .font(theme::sans(12.0)) |
| 973 | ) | 947 | .color(theme::TEXT_FAINT), |
| 974 | .font(theme::sans(12.0)) | ||
| 975 | .color(theme::TEXT_FAINT), | ||
| 976 | ); | 948 | ); |
| 977 | command | 949 | command |
| 978 | } | 950 | } |
