From ca1828fc869aaeb72df00c642f918a7723c84df4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 06:38:48 +0400 Subject: feat(ui): save and reopen warbot projects Use original designer art and names for named Unit DAT files. Restore researched designs onto the prepared mounts of a compatible factory scheme. Verified saving, restoring and ordering from the Field Camp window, and production after decoding the saved design in the Constructor. --- apps/fparkan-game/src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/fparkan-game/src/main.rs') diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index f4c20e58..475ed8b3 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -16,6 +16,7 @@ mod control_effects; use control_effects::advance_control_effect_instances; mod damage_visibility; mod debris; +mod designer_projects; mod destruction_effects; mod factory_menu; use factory_menu::{FactoryChoice, FactoryMenu}; @@ -12382,6 +12383,14 @@ impl ApplicationHandler for StaticVulkanApp { } return; } + if self.handle_designer_project_key( + event.physical_key, + event.text.as_deref(), + event.state, + event.repeat, + ) { + return; + } let key = if self.cockpit.is_some() && self.demo_camera.is_none() { player_movement_key(event.physical_key, &event.logical_key) .map_or(event.physical_key, PhysicalKey::Code) -- cgit v1.2.3