diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 13:59:29 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 13:59:29 +0300 |
| commit | 98569dc5e8ee01b19ee82852a807f6a2b911dae4 (patch) | |
| tree | 71dce6e11eaef918fc817b9393c0e190f661dd1c /apps/fparkan-game/src/satellite_map.rs | |
| parent | 05da53f0344416a5f14211a73f1f48d72c88b954 (diff) | |
| download | fparkan-98569dc5e8ee01b19ee82852a807f6a2b911dae4.tar.xz fparkan-98569dc5e8ee01b19ee82852a807f6a2b911dae4.zip | |
feat(ui): watch a warbot on autopilot from its cockpit
Diffstat (limited to 'apps/fparkan-game/src/satellite_map.rs')
| -rw-r--r-- | apps/fparkan-game/src/satellite_map.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/satellite_map.rs b/apps/fparkan-game/src/satellite_map.rs index a2be6288..a48ba72f 100644 --- a/apps/fparkan-game/src/satellite_map.rs +++ b/apps/fparkan-game/src/satellite_map.rs @@ -118,6 +118,11 @@ impl SatelliteMap { self.visible = true; } + #[cfg(windows)] + pub(super) fn is_visible(&self) -> bool { + self.visible + } + pub(super) fn hide(&mut self) -> bool { std::mem::replace(&mut self.visible, false) } |
