From 61208d874cb3d9bf93e9f7c60aceebc287454b62 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 11:59:08 +0400 Subject: feat(ui): give warbots standing and route orders Bind the first two commands to the live selection and shared route controller. Build the order panel from the installed compound controls and game font. In stock Two Fortresses, checked Stand, route drafting on the satellite map and terrain, and movement after confirmation with Vulkan validation. --- crates/fparkan-runtime/src/satellite_contacts.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/satellite_contacts.rs') diff --git a/crates/fparkan-runtime/src/satellite_contacts.rs b/crates/fparkan-runtime/src/satellite_contacts.rs index e984baf3..17030fc1 100644 --- a/crates/fparkan-runtime/src/satellite_contacts.rs +++ b/crates/fparkan-runtime/src/satellite_contacts.rs @@ -229,7 +229,8 @@ fn icon_x(class: u32) -> Option { }) } -fn project([x, y]: [f32; 2], extent: f32) -> Option<[i32; 2]> { +/// Projects world XY onto the original 256-pixel map, including the inverted Y axis. +pub fn project([x, y]: [f32; 2], extent: f32) -> Option<[i32; 2]> { if !x.is_finite() || !y.is_finite() || !extent.is_finite() || extent <= 0.0 { return None; } -- cgit v1.2.3