diff options
Diffstat (limited to 'gui/src/crash.rs')
| -rw-r--r-- | gui/src/crash.rs | 47 |
1 files changed, 2 insertions, 45 deletions
diff --git a/gui/src/crash.rs b/gui/src/crash.rs index 14197ae..08113a8 100644 --- a/gui/src/crash.rs +++ b/gui/src/crash.rs | |||
| @@ -119,11 +119,7 @@ fn sidebar(ui: &mut Ui, view: &CrashView, fx: &mut Fx) -> Option<Command> { | |||
| 119 | .font(theme::sans(22.0)) | 119 | .font(theme::sans(22.0)) |
| 120 | .color(theme::TEXT), | 120 | .color(theme::TEXT), |
| 121 | ); | 121 | ); |
| 122 | ui.label( | 122 | widgets::note(ui, "Cash out before the multiplier crashes."); |
| 123 | eframe::egui::RichText::new("Rise · cash out · don't bust") | ||
| 124 | .font(theme::sans(12.0)) | ||
| 125 | .color(theme::TEXT_DIM), | ||
| 126 | ); | ||
| 127 | 123 | ||
| 128 | ui.add_space(theme::SPACE_5); | 124 | ui.add_space(theme::SPACE_5); |
| 129 | ui.label(theme::label("Bet")); | 125 | ui.label(theme::label("Bet")); |
| @@ -152,14 +148,6 @@ fn sidebar(ui: &mut Ui, view: &CrashView, fx: &mut Fx) -> Option<Command> { | |||
| 152 | ui.add_space(theme::SPACE_3); | 148 | ui.add_space(theme::SPACE_3); |
| 153 | widgets::error(ui, error); | 149 | widgets::error(ui, error); |
| 154 | } | 150 | } |
| 155 | |||
| 156 | ui.add_space(theme::SPACE_4); | ||
| 157 | ui.separator(); | ||
| 158 | ui.add_space(theme::SPACE_2); | ||
| 159 | widgets::note( | ||
| 160 | ui, | ||
| 161 | "The crash point is server-timed. The curve here is display only.", | ||
| 162 | ); | ||
| 163 | }); | 151 | }); |
| 164 | }, | 152 | }, |
| 165 | ); | 153 | ); |
| @@ -231,29 +219,7 @@ fn status(ui: &mut Ui, view: &CrashView) { | |||
| 231 | } | 219 | } |
| 232 | 220 | ||
| 233 | fn chart(ui: &mut Ui, view: &CrashView, fx: &Fx) { | 221 | fn chart(ui: &mut Ui, view: &CrashView, fx: &Fx) { |
| 234 | ui.horizontal(|ui| { | 222 | ui.add_space(theme::SPACE_2); |
| 235 | ui.label( | ||
| 236 | eframe::egui::RichText::new("Table 01") | ||
| 237 | .font(theme::sans(15.0)) | ||
| 238 | .color(theme::TEXT), | ||
| 239 | ); | ||
| 240 | ui.label( | ||
| 241 | eframe::egui::RichText::new("Crash · server-timed") | ||
| 242 | .font(theme::sans(12.0)) | ||
| 243 | .color(theme::TEXT_DIM), | ||
| 244 | ); | ||
| 245 | ui.with_layout( | ||
| 246 | eframe::egui::Layout::right_to_left(eframe::egui::Align::Center), | ||
| 247 | |ui| { | ||
| 248 | ui.label( | ||
| 249 | eframe::egui::RichText::new("Cash out any time before the crash") | ||
| 250 | .font(theme::mono(11.0)) | ||
| 251 | .color(theme::TEXT_FAINT), | ||
| 252 | ); | ||
| 253 | }, | ||
| 254 | ); | ||
| 255 | }); | ||
| 256 | ui.add_space(theme::SPACE_4); | ||
| 257 | 223 | ||
| 258 | let available = ui.available_size(); | 224 | let available = ui.available_size(); |
| 259 | let size = vec2(available.x, (available.y - 70.0).max(260.0)); | 225 | let size = vec2(available.x, (available.y - 70.0).max(260.0)); |
| @@ -379,15 +345,6 @@ fn chart(ui: &mut Ui, view: &CrashView, fx: &Fx) { | |||
| 379 | } | 345 | } |
| 380 | } | 346 | } |
| 381 | } | 347 | } |
| 382 | |||
| 383 | ui.add_space(theme::SPACE_4); | ||
| 384 | ui.label( | ||
| 385 | eframe::egui::RichText::new( | ||
| 386 | "The crash point is drawn from the server; the multiplier here is display only.", | ||
| 387 | ) | ||
| 388 | .font(theme::sans(11.0)) | ||
| 389 | .color(theme::TEXT_FAINT), | ||
| 390 | ); | ||
| 391 | } | 348 | } |
| 392 | 349 | ||
| 393 | fn map_y(plot: Rect, multiplier: f64, max_multiplier: f64) -> f32 { | 350 | fn map_y(plot: Rect, multiplier: f64, max_multiplier: f64) -> f32 { |
