diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-10 13:29:56 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-10 13:29:56 -0400 |
| commit | 7f63ec5c10eb7e8dd4edaabd1a6a437328911d39 (patch) | |
| tree | 36bd3d75ebc0c25256413c21a7cb28c9296953f5 /src/ui/bodies_window.rs | |
| parent | c9041e2e6fe59d6127bb1085b874e8e3cda8000e (diff) | |
| download | systemic4x-7f63ec5c10eb7e8dd4edaabd1a6a437328911d39.tar.gz systemic4x-7f63ec5c10eb7e8dd4edaabd1a6a437328911d39.tar.bz2 systemic4x-7f63ec5c10eb7e8dd4edaabd1a6a437328911d39.zip | |
fleets
Diffstat (limited to 'src/ui/bodies_window.rs')
| -rw-r--r-- | src/ui/bodies_window.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/bodies_window.rs b/src/ui/bodies_window.rs index ece605b..21a2060 100644 --- a/src/ui/bodies_window.rs +++ b/src/ui/bodies_window.rs @@ -10,6 +10,7 @@ use crate::timeman::TimeMan; #[derive(Default, Clone)] pub struct BodiesWindowState { + pub open: bool, last_system: Option<SystemId>, system_heirarchy: NTree<SystemId>, selected_body: Option<BodyId> @@ -76,7 +77,9 @@ impl BodiesWindowState let mut action = BodiesWindowAction::default(); + let mut bodies_window_open = self.open; egui::Window::new("Bodies") + .open(&mut &mut bodies_window_open) .resizable(true) .show(eguictx.context(), |ui| { @@ -85,6 +88,7 @@ impl BodiesWindowState self.paint_body_info_panel(&mut action, current_system, ui); }); }); + self.open = bodies_window_open; action } |
