diff options
Diffstat (limited to 'apps/fparkan-game')
| -rw-r--r-- | apps/fparkan-game/src/strategic_roster_hud.rs | 8 | ||||
| -rw-r--r-- | apps/fparkan-game/src/strategic_view.rs | 5 |
2 files changed, 9 insertions, 4 deletions
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<WarbotStats>, rows: Vec<WarbotRow>, selected: Option<ObjectHandle>, - order_labels: [String; 5], + order_labels: [String; 6], orders: Option<Option<RosterOrder>>, } @@ -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 => {} } } |
