diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 10:59:08 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 10:59:08 +0300 |
| commit | 61208d874cb3d9bf93e9f7c60aceebc287454b62 (patch) | |
| tree | e23585ccd89bfd73b36174742acc1777f569afa2 /apps/fparkan-game/src/mission_overlay.rs | |
| parent | 20161fbf4fab9080a2d0d6ceedbf1344435cfda0 (diff) | |
| download | fparkan-61208d874cb3d9bf93e9f7c60aceebc287454b62.tar.xz fparkan-61208d874cb3d9bf93e9f7c60aceebc287454b62.zip | |
feat(ui): give warbots standing and route orders
Bind the first two commands to the live selection and shared route controller. Build the order panel from the installed compound controls and game font. In stock Two Fortresses, checked Stand, route drafting on the satellite map and terrain, and movement after confirmation with Vulkan validation.
Diffstat (limited to 'apps/fparkan-game/src/mission_overlay.rs')
| -rw-r--r-- | apps/fparkan-game/src/mission_overlay.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/mission_overlay.rs b/apps/fparkan-game/src/mission_overlay.rs index eab32d2c..8825094b 100644 --- a/apps/fparkan-game/src/mission_overlay.rs +++ b/apps/fparkan-game/src/mission_overlay.rs @@ -260,7 +260,11 @@ impl StaticVulkanApp { .and_then(|(handle, engine)| { fparkan_runtime::warbot_stats::warbot_stats(engine, handle) }); - roster.draw(renderer, warbot_rows, selected_warbot, card)?; + let orders = self + .command_view + .as_ref() + .and_then(|view| view.order_panel(&warbot_rows)); + roster.draw(renderer, warbot_rows, selected_warbot, card, orders)?; } if let Some(map) = &mut self.overlay.satellite_map { let demo_target = self @@ -292,6 +296,9 @@ impl StaticVulkanApp { player, demo_target.is_some(), self.command_view.is_some(), + self.command_view + .as_ref() + .and_then(|view| view.route_draft()), )?; } let cockpit = self.cockpit.filter(|_| self.command_view.is_none()); |
