diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 10:59:08 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 10:59:08 +0300 |
| commit | 61208d874cb3d9bf93e9f7c60aceebc287454b62 (patch) | |
| tree | e23585ccd89bfd73b36174742acc1777f569afa2 /crates/fparkan-runtime/src/satellite_contacts.rs | |
| parent | 20161fbf4fab9080a2d0d6ceedbf1344435cfda0 (diff) | |
| download | fparkan-61208d874cb3d9bf93e9f7c60aceebc287454b62.tar.xz fparkan-61208d874cb3d9bf93e9f7c60aceebc287454b62.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/satellite_contacts.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/satellite_contacts.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<u32> { }) } -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; } |
