diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-04-30 10:06:32 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-04-30 10:06:32 -0400 |
| commit | 961f8c6d405c9c6fcf9aaf4fb6f199b0e5c60d88 (patch) | |
| tree | a26797d6314fa8c193a459e988427c7bfe7f19a7 /src/ui.rs | |
| parent | 25255a8b9147d27aa40b28d6aadb62c0ab275d32 (diff) | |
| download | systemic4x-961f8c6d405c9c6fcf9aaf4fb6f199b0e5c60d88.tar.gz systemic4x-961f8c6d405c9c6fcf9aaf4fb6f199b0e5c60d88.tar.bz2 systemic4x-961f8c6d405c9c6fcf9aaf4fb6f199b0e5c60d88.zip | |
add orbit rendering for bodies
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -65,15 +65,14 @@ impl State ); } }); - - let current_system = match state.current_system { - Some(id) => &solar_systems[id], - None => return - }; }); ui.horizontal(|ui| { - ui.label(format!("Time: {: <16}", TimeMan::format_duration(game_state.timeman().seconds()))); + let time_str = TimeMan::format_duration(game_state.timeman().seconds()); + ui.label( + egui::RichText::new(format!("Time: {: >16}", time_str)) + .font(egui::FontId::monospace(12.0)) + ); let button_seconds = [ 1, |
