From 733f9d92e0d4e40ed40db42fa6cd11294e49eb7b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 12:12:06 +0400 Subject: feat(ui): show native strategic waypoint cursors Read the animated cursor strips and their hotspots from the installed UI atlas. Use the native Land.map areal flag and chassis selector for both the preview cursor and waypoint input. In stock Two Fortresses, compared one accepted and one rejected map point against the original and checked the return to the cockpit with Vulkan validation. --- crates/fparkan-assets/src/strategic_roster/orders.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/fparkan-assets/src/strategic_roster') diff --git a/crates/fparkan-assets/src/strategic_roster/orders.rs b/crates/fparkan-assets/src/strategic_roster/orders.rs index 743b4801..4ea7d8d8 100644 --- a/crates/fparkan-assets/src/strategic_roster/orders.rs +++ b/crates/fparkan-assets/src/strategic_roster/orders.rs @@ -33,6 +33,12 @@ fn panel_top(count: usize) -> u32 { ROW_TOP + count.min(19) as u32 * ROW_PITCH } +pub(super) fn covers_pointer([x, y]: [f32; 2], count: usize) -> bool { + let y_top = panel_top(count); + let y_bottom = (y_top + (ORDERS.len() as u32 + 1) * ROW_PITCH).min(480); + (LEFT as f32..RIGHT as f32).contains(&x) && (y_top as f32..y_bottom as f32).contains(&y) +} + pub(super) struct OrderImages { stub: RgbaImage, disabled: RgbaImage, -- cgit v1.2.3