From 7dd027fd5130daf532cd2214a6d9689293bb2c86 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 13:07:11 +0400 Subject: feat(ui): assign search and destroy from the warbot panel Show the native search status immediately without opening the map. Verify from the stock Two Fortresses start that the selected marker moves with the internal route hidden and that Stand cancels the search. --- apps/fparkan-game/src/strategic_roster_hud.rs | 7 ++++--- apps/fparkan-game/src/strategic_view.rs | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'apps/fparkan-game/src') diff --git a/apps/fparkan-game/src/strategic_roster_hud.rs b/apps/fparkan-game/src/strategic_roster_hud.rs index 37b5b1a5..1a57bc70 100644 --- a/apps/fparkan-game/src/strategic_roster_hud.rs +++ b/apps/fparkan-game/src/strategic_roster_hud.rs @@ -19,7 +19,7 @@ pub(super) struct StrategicRosterHud { card: Option, rows: Vec, selected: Option, - order_labels: [String; 4], + order_labels: [String; 5], orders: Option>, } @@ -57,8 +57,9 @@ impl StrategicRosterHud { [1.0; 3], 1.0, )?; - let [orders, stand, follow, patrol] = [0x13dc, 0x1388, 0x1389, 0x138e].map(localized); - let order_labels = [orders?, stand?, follow?, patrol?]; + let [orders, stand, follow, search, patrol] = + [0x13dc, 0x1388, 0x1389, 0x138b, 0x138e].map(localized); + let order_labels = [orders?, stand?, follow?, search?, patrol?]; Ok(Self { range, images, diff --git a/apps/fparkan-game/src/strategic_view.rs b/apps/fparkan-game/src/strategic_view.rs index b19de9d4..869b9d77 100644 --- a/apps/fparkan-game/src/strategic_view.rs +++ b/apps/fparkan-game/src/strategic_view.rs @@ -386,6 +386,11 @@ impl StaticVulkanApp { view.order_input = Some(OrderInput::Route(Vec::new())); return; } + Some((actor, RosterOrder::SearchAndDestroy)) => { + strategic_orders::search_and_destroy(engine, cockpit, actor); + view.order_input = None; + return; + } Some((_, RosterOrder::Patrol)) => { view.order_input = Some(OrderInput::Patrol); return; -- cgit v1.2.3