From cc6bbdfa4aebf844ec7be2e8eb01b7fd1c69d24b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 16:20:23 +0400 Subject: feat(ui): show strategic factories and order a warbot --- apps/fparkan-game/src/robot_designer.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 2c97ef35..8fe71df7 100644 --- a/apps/fparkan-game/src/robot_designer.rs +++ b/apps/fparkan-game/src/robot_designer.rs @@ -26,6 +26,19 @@ pub(super) struct RobotDesignerPanel { } impl RobotDesignerPanel { + pub(super) fn draw_factory_model( + &self, + renderer: &mut VulkanSmokeRenderer, + active: (usize, u32), + viewport: [f32; 2], + ) -> Result<(), String> { + self.models.draw_in( + renderer, + Some(active), + viewport, + fparkan_assets::strategic_factory::MODEL_RECT, + ) + } pub(super) fn load( root: &Path, preview: &mut StaticPreviewScene, -- cgit v1.2.3