From a0a3b3974cab754c10a1517d82762b99482970ce Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Tue, 12 May 2026 19:01:27 -0400 Subject: update packages to latest versions --- src/ui.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/ui.rs') diff --git a/src/ui.rs b/src/ui.rs index c2c4b05..73389a8 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -23,15 +23,15 @@ pub struct State impl State { - pub fn render( + pub fn paint( &mut self, game_state: &RefCell, - eguictx: &EguiCtx) + ui: &mut egui::Ui) { let mut game_state = game_state.borrow_mut(); let topbar_action = self.topbar_sate.paint( - eguictx, + ui, &game_state, &self.bodies_window, &self.fleet_window); @@ -48,13 +48,17 @@ impl State }; let bodies_window_action = - self.bodies_window.render(current_system, eguictx); + self.bodies_window.paint(ui, current_system); if bodies_window_action.focus_body.is_some() { self.camera_target = bodies_window_action.focus_body; } let fleet_window_action = - self.fleet_window.paint(game_state.borrow(), eguictx, &self.camera_target); + self.fleet_window.paint( + ui, + game_state.borrow(), + &self.topbar_sate.current_system, + &self.camera_target); if let Some(new_fleet) = fleet_window_action.new_fleet { game_state.new_fleet_from_ui(new_fleet); -- cgit v1.2.3