From 6fde1faa1dfed89007566b3373114a89139390b9 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 06:25:19 +0400 Subject: feat(ui): edit installed warbot equipment Choose researched internal equipment per mount and build the resulting Unit DAT with the projected Control devices. Verified pointer selection and order in Field Camp with Vulkan validation, and produced the edited two-gun design at the Constructor factory. --- apps/fparkan-game/src/main.rs | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (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 8e372c9f..f4c20e58 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -10830,6 +10830,7 @@ impl StaticVulkanApp { factory, scheme, name: path.rsplit('/').next().unwrap_or(path).to_owned(), + changes: Vec::new(), }) .collect::>(); match choices.len() { @@ -10864,23 +10865,17 @@ impl StaticVulkanApp { factory, scheme, name, + changes, }) = selected { - let order = match factory { - Some(factory) => fparkan_runtime::order_clan_factory_scheme( - engine, - cockpit, - factory, - scheme, - control_clock_ms, - ), - None => fparkan_runtime::order_factory_scheme( - engine, - cockpit, - scheme, - control_clock_ms, - ), - }; + let order = fparkan_runtime::order_factory_design( + engine, + cockpit, + factory, + scheme, + &changes, + control_clock_ms, + ); match order { Ok(duration) => { self.factory_status = Some(format!("Завод — собирается {name}")); -- cgit v1.2.3