From 20491de7c29f56fda9be16d3b56a9633cb71d386 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 08:36:47 +0400 Subject: feat(ui): build factory projects from a selected chassis Use researched chassis that fit the selected factory and populate a new Unit DAT from the chassis Control slots and stock default parts. The designer can remove the old chassis, preview the new model, edit its internal parts, and transfer it to the factory. Verified the stock start of Field Camp: remove S-12w, select S-31, install another battery, and queue the resulting project with Vulkan validation enabled. --- apps/fparkan-game/src/robot_designer.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/fparkan-game/src/robot_designer.rs') diff --git a/apps/fparkan-game/src/robot_designer.rs b/apps/fparkan-game/src/robot_designer.rs index 0b4590cc..1d3edb4a 100644 --- a/apps/fparkan-game/src/robot_designer.rs +++ b/apps/fparkan-game/src/robot_designer.rs @@ -191,10 +191,7 @@ impl RobotDesignerPanel { first_part: designer.first_part, first_variant: designer.first_variant, category: designer.category, - variants: designer - .variants - .as_ref() - .map(|(mount, list)| (*mount, list.as_slice())), + variants: designer.visible_variants(), hover: designer.hover, file_dialog, file_status: designer.file_status.as_deref(), -- cgit v1.2.3