diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-12 19:01:27 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-12 19:01:27 -0400 |
| commit | a0a3b3974cab754c10a1517d82762b99482970ce (patch) | |
| tree | 8aeb0ca1e007bacecc8e12a263bd5aa321b8f69a /src/ui/topbar.rs | |
| parent | 7f63ec5c10eb7e8dd4edaabd1a6a437328911d39 (diff) | |
| download | systemic4x-main.tar.gz systemic4x-main.tar.bz2 systemic4x-main.zip | |
Diffstat (limited to 'src/ui/topbar.rs')
| -rw-r--r-- | src/ui/topbar.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/topbar.rs b/src/ui/topbar.rs index ba26d7c..511c67e 100644 --- a/src/ui/topbar.rs +++ b/src/ui/topbar.rs @@ -22,7 +22,7 @@ impl TopBarState { pub fn paint( &mut self, - eguictx: &EguiCtx, + ui: &mut egui::Ui, game_state: &GameState, bodies_window_state: &BodiesWindowState, fleets_window_state: &FleetWindowState) @@ -33,8 +33,8 @@ impl TopBarState let solar_systems = game_state.solar_systems(); let timeman = game_state.timeman(); - egui::TopBottomPanel::top("topbar").show( - eguictx.context(), + egui::Panel::top("topbar").show_inside( + ui, |ui| { ui.horizontal(|ui| { @@ -62,7 +62,7 @@ impl TopBarState }); }); - self.paint_tick_buttons(&mut action, timeman, ui); + self.paint_tick_buttons(&mut action, ui); }); ui.vertical_centered_justified(|ui| { @@ -95,7 +95,6 @@ impl TopBarState pub fn paint_tick_buttons( &mut self, action: &mut TopBarAction, - timeman: &TimeMan, ui: &mut egui::Ui) { let button_seconds = [ |
