diff options
Diffstat (limited to 'gui/src/slots.rs')
| -rw-r--r-- | gui/src/slots.rs | 56 |
1 files changed, 2 insertions, 54 deletions
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<Command> { | |||
| 109 | .font(theme::sans(22.0)) | 109 | .font(theme::sans(22.0)) |
| 110 | .color(theme::TEXT), | 110 | .color(theme::TEXT), |
| 111 | ); | 111 | ); |
| 112 | ui.label( | 112 | widgets::note(ui, "Match three or more symbols from the left."); |
| 113 | eframe::egui::RichText::new("5 reels · 5 paylines") | ||
| 114 | .font(theme::sans(12.0)) | ||
| 115 | .color(theme::TEXT_DIM), | ||
| 116 | ); | ||
| 117 | 113 | ||
| 118 | ui.add_space(theme::SPACE_5); | 114 | ui.add_space(theme::SPACE_5); |
| 119 | ui.label(theme::label("Bet")); | 115 | ui.label(theme::label("Bet")); |
| @@ -128,32 +124,6 @@ fn sidebar(ui: &mut Ui, view: &SlotsView, fx: &mut Fx) -> Option<Command> { | |||
| 128 | ui.add_space(theme::SPACE_3); | 124 | ui.add_space(theme::SPACE_3); |
| 129 | widgets::error(ui, error); | 125 | widgets::error(ui, error); |
| 130 | } | 126 | } |
| 131 | |||
| 132 | ui.add_space(theme::SPACE_4); | ||
| 133 | ui.separator(); | ||
| 134 | ui.add_space(theme::SPACE_3); | ||
| 135 | ui.label(theme::label("Paytable")); | ||
| 136 | ui.add_space(theme::SPACE_2); | ||
| 137 | ui.label( | ||
| 138 | eframe::egui::RichText::new("Pays bet × symbol × shape") | ||
| 139 | .font(theme::sans(11.0)) | ||
| 140 | .color(theme::TEXT_FAINT), | ||
| 141 | ); | ||
| 142 | ui.horizontal(|ui| { | ||
| 143 | ui.spacing_mut().item_spacing.x = theme::SPACE_2; | ||
| 144 | for (symbol, multiplier) in zagan_bet::slots::SYMBOL_MULTIPLIERS { | ||
| 145 | ui.label( | ||
| 146 | eframe::egui::RichText::new(format!("{symbol}{multiplier}")) | ||
| 147 | .font(theme::mono(12.0)) | ||
| 148 | .color(symbol_color(symbol)), | ||
| 149 | ); | ||
| 150 | } | ||
| 151 | }); | ||
| 152 | ui.label( | ||
| 153 | eframe::egui::RichText::new("3×1 4×3 5×14") | ||
| 154 | .font(theme::mono(12.0)) | ||
| 155 | .color(theme::TEXT_DIM), | ||
| 156 | ); | ||
| 157 | }); | 127 | }); |
| 158 | }, | 128 | }, |
| 159 | ); | 129 | ); |
| @@ -240,29 +210,7 @@ fn status(ui: &mut Ui, view: &SlotsView, spinning: bool) { | |||
| 240 | } | 210 | } |
| 241 | 211 | ||
| 242 | fn board(ui: &mut Ui, view: &SlotsView, fx: &Fx) { | 212 | fn board(ui: &mut Ui, view: &SlotsView, fx: &Fx) { |
| 243 | ui.horizontal(|ui| { | 213 | ui.add_space(theme::SPACE_2); |
| 244 | ui.label( | ||
| 245 | eframe::egui::RichText::new("Machine 01") | ||
| 246 | .font(theme::sans(15.0)) | ||
| 247 | .color(theme::TEXT), | ||
| 248 | ); | ||
| 249 | ui.label( | ||
| 250 | eframe::egui::RichText::new("5 reels · 5 paylines") | ||
| 251 | .font(theme::sans(12.0)) | ||
| 252 | .color(theme::TEXT_DIM), | ||
| 253 | ); | ||
| 254 | ui.with_layout( | ||
| 255 | eframe::egui::Layout::right_to_left(eframe::egui::Align::Center), | ||
| 256 | |ui| { | ||
| 257 | ui.label( | ||
| 258 | eframe::egui::RichText::new("Bet 10 – 500 Kr") | ||
| 259 | .font(theme::mono(12.0)) | ||
| 260 | .color(theme::TEXT_FAINT), | ||
| 261 | ); | ||
| 262 | }, | ||
| 263 | ); | ||
| 264 | }); | ||
| 265 | ui.add_space(theme::SPACE_5); | ||
| 266 | 214 | ||
| 267 | let now = ui.input(|input| input.time); | 215 | let now = ui.input(|input| input.time); |
| 268 | let spinning = fx.spinning(view, now); | 216 | let spinning = fx.spinning(view, now); |
