From c846377ead77ef7184cdeddd25c3f2c9d76a6736 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 13:27:06 +0400 Subject: feat(ui): send warbots to recharge from the strategic panel Verify LTW-3 approaches the generator and clears its recharge status after leaving from the stock Two Fortresses start. Reuse authored building passages and shared Control replenishment, with a licensed test for refilling an empty magazine. --- apps/fparkan-game/src/strategic_roster_hud.rs | 8 ++++---- apps/fparkan-game/src/strategic_view.rs | 5 +++++ 2 files changed, 9 insertions(+), 4 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 1a57bc70..1268180e 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; 5], + order_labels: [String; 6], orders: Option>, } @@ -57,9 +57,9 @@ impl StrategicRosterHud { [1.0; 3], 1.0, )?; - let [orders, stand, follow, search, patrol] = - [0x13dc, 0x1388, 0x1389, 0x138b, 0x138e].map(localized); - let order_labels = [orders?, stand?, follow?, search?, patrol?]; + let [orders, stand, follow, search, patrol, recharge] = + [0x13dc, 0x1388, 0x1389, 0x138b, 0x138e, 0x138f].map(localized); + let order_labels = [orders?, stand?, follow?, search?, patrol?, recharge?]; Ok(Self { range, images, diff --git a/apps/fparkan-game/src/strategic_view.rs b/apps/fparkan-game/src/strategic_view.rs index 869b9d77..d21549ae 100644 --- a/apps/fparkan-game/src/strategic_view.rs +++ b/apps/fparkan-game/src/strategic_view.rs @@ -395,6 +395,11 @@ impl StaticVulkanApp { view.order_input = Some(OrderInput::Patrol); return; } + Some((actor, RosterOrder::Recharge)) => { + strategic_orders::recharge(engine, cockpit, actor); + view.order_input = None; + return; + } None => {} } } -- cgit v1.2.3