diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 18:05:52 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 18:05:52 +0300 |
| commit | 9f442fa339371869dda44a32a9e0ec2f763d830c (patch) | |
| tree | bec91edfe30d42a278502561af155c11a32de764 /apps/fparkan-game/src/mission_overlay.rs | |
| parent | 3b5a8aa4e6465ca56763cb96b4100bb1ff1c0ccf (diff) | |
| download | fparkan-9f442fa339371869dda44a32a9e0ec2f763d830c.tar.xz fparkan-9f442fa339371869dda44a32a9e0ec2f763d830c.zip | |
feat(ui): connect the bunker list to the strategic camera
Show clan bunkers with the original compound controls and map selection. The strategic command button switches the camera anchor and preserves a view already bound to that bunker. Check the stock Two Fortresses window with Vulkan validation and exercise retargeting and the ownership guard with the licensed runtime test.
Diffstat (limited to 'apps/fparkan-game/src/mission_overlay.rs')
| -rw-r--r-- | apps/fparkan-game/src/mission_overlay.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/fparkan-game/src/mission_overlay.rs b/apps/fparkan-game/src/mission_overlay.rs index 43177b6a..d253a074 100644 --- a/apps/fparkan-game/src/mission_overlay.rs +++ b/apps/fparkan-game/src/mission_overlay.rs @@ -305,6 +305,12 @@ impl StaticVulkanApp { #[cfg(windows)] let buildings_frame = self.strategic_buildings_frame(); #[cfg(windows)] + let panel_tip = factory_tip.or_else(|| { + buildings_frame + .as_ref()? + .tooltip(self.command_view.as_ref()?.pointer()?) + }); + #[cfg(windows)] let row_count = warbot_rows.len(); #[cfg(windows)] let cursor = self.strategy_cursor(row_count); @@ -328,7 +334,7 @@ impl StaticVulkanApp { sections: fparkan_runtime::strategic_toolbar::available_sections(engine, cockpit), warbots_open: view.warbots_open, factories_open: view.factories_open(), - other_buildings_open: view.other_buildings_open(), + building_section: view.building_section(), map_open: self .overlay .satellite_map @@ -546,7 +552,7 @@ impl StaticVulkanApp { .filter(|_| self.overlay.strategy_toolbar.is_some()) .map(|view| view.toolbar_layout()), card_rows, - factory_tip, + panel_tip, )?; } Ok(()) |
