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/slots.rs | 56 ++------------------------------------------------------ 1 file changed, 2 insertions(+), 54 deletions(-) (limited to 'gui/src/slots.rs') diff --git a/gui/src/slots.rs b/gui/src/slots.rs index 6574626..d2a288a 100644 --- a/gui/src/slots.rs +++ b/gui/src/slots.rs @@ -109,11 +109,7 @@ fn sidebar(ui: &mut Ui, view: &SlotsView, fx: &mut Fx) -> Option { .font(theme::sans(22.0)) .color(theme::TEXT), ); - ui.label( - eframe::egui::RichText::new("5 reels · 5 paylines") - .font(theme::sans(12.0)) - .color(theme::TEXT_DIM), - ); + widgets::note(ui, "Match three or more symbols from the left."); ui.add_space(theme::SPACE_5); ui.label(theme::label("Bet")); @@ -128,32 +124,6 @@ fn sidebar(ui: &mut Ui, view: &SlotsView, fx: &mut Fx) -> Option { ui.add_space(theme::SPACE_3); widgets::error(ui, error); } - - ui.add_space(theme::SPACE_4); - ui.separator(); - ui.add_space(theme::SPACE_3); - ui.label(theme::label("Paytable")); - ui.add_space(theme::SPACE_2); - ui.label( - eframe::egui::RichText::new("Pays bet × symbol × shape") - .font(theme::sans(11.0)) - .color(theme::TEXT_FAINT), - ); - ui.horizontal(|ui| { - ui.spacing_mut().item_spacing.x = theme::SPACE_2; - for (symbol, multiplier) in zagan_bet::slots::SYMBOL_MULTIPLIERS { - ui.label( - eframe::egui::RichText::new(format!("{symbol}{multiplier}")) - .font(theme::mono(12.0)) - .color(symbol_color(symbol)), - ); - } - }); - ui.label( - eframe::egui::RichText::new("3×1 4×3 5×14") - .font(theme::mono(12.0)) - .color(theme::TEXT_DIM), - ); }); }, ); @@ -240,29 +210,7 @@ fn status(ui: &mut Ui, view: &SlotsView, spinning: bool) { } fn board(ui: &mut Ui, view: &SlotsView, fx: &Fx) { - ui.horizontal(|ui| { - ui.label( - eframe::egui::RichText::new("Machine 01") - .font(theme::sans(15.0)) - .color(theme::TEXT), - ); - ui.label( - eframe::egui::RichText::new("5 reels · 5 paylines") - .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("Bet 10 – 500 Kr") - .font(theme::mono(12.0)) - .color(theme::TEXT_FAINT), - ); - }, - ); - }); - ui.add_space(theme::SPACE_5); + ui.add_space(theme::SPACE_2); let now = ui.input(|input| input.time); let spinning = fx.spinning(view, now); -- cgit v1.2.3