From a5ea79739783682c46983d5b67b2b4b7b5338ccb Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 21:24:48 +0100 Subject: 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. --- gui/src/blackjack.rs | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'gui/src/blackjack.rs') diff --git a/gui/src/blackjack.rs b/gui/src/blackjack.rs index d42f000..bbe96fa 100644 --- a/gui/src/blackjack.rs +++ b/gui/src/blackjack.rs @@ -70,11 +70,7 @@ fn sidebar(ui: &mut Ui, view: &BlackjackView) -> Option { .font(theme::sans(22.0)) .color(theme::TEXT), ); - ui.label( - eframe::egui::RichText::new("6 decks · dealer stands on 17 · 3:2") - .font(theme::sans(12.0)) - .color(theme::TEXT_DIM), - ); + widgets::note(ui, "Get close to 21 without going over."); ui.add_space(theme::SPACE_5); ui.label(theme::label("Bet")); @@ -104,12 +100,6 @@ fn sidebar(ui: &mut Ui, view: &BlackjackView) -> Option { ui.add_space(theme::SPACE_3); widgets::error(ui, error); } - - ui.add_space(theme::SPACE_4); - ui.separator(); - ui.add_space(theme::SPACE_2); - widgets::note(ui, "Blackjack pays 3:2. The dealer stands on soft 17."); - widgets::note(ui, "Double only on the first two cards."); }); }, ); @@ -189,29 +179,7 @@ fn result_text(result: &str, winnings: u64) -> (String, Color32) { } fn board(ui: &mut Ui, view: &BlackjackView) { - ui.horizontal(|ui| { - ui.label( - eframe::egui::RichText::new("Table 01") - .font(theme::sans(15.0)) - .color(theme::TEXT), - ); - ui.label( - eframe::egui::RichText::new("Blackjack · six decks") - .font(theme::sans(12.0)) - .color(theme::TEXT_DIM), - ); - ui.with_layout( - eframe::egui::Layout::right_to_left(eframe::egui::Align::Center), - |ui| { - ui.label( - eframe::egui::RichText::new("3:2 · S17") - .font(theme::mono(12.0)) - .color(theme::TEXT_FAINT), - ); - }, - ); - }); - ui.add_space(theme::SPACE_5); + ui.add_space(theme::SPACE_2); let Some(hand) = &view.hand else { centered_note(ui, "Place a bet and deal a hand."); -- cgit v1.2.3