aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/main.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 11:12:06 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 11:12:06 +0300
commit733f9d92e0d4e40ed40db42fa6cd11294e49eb7b (patch)
tree824dde369c5fbb7b3180c42899c4f0555929ca4b /apps/fparkan-game/src/main.rs
parent61208d874cb3d9bf93e9f7c60aceebc287454b62 (diff)
downloadfparkan-733f9d92e0d4e40ed40db42fa6cd11294e49eb7b.tar.xz
fparkan-733f9d92e0d4e40ed40db42fa6cd11294e49eb7b.zip
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.
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
-rw-r--r--apps/fparkan-game/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs
index 347bdc1b..02727c17 100644
--- a/apps/fparkan-game/src/main.rs
+++ b/apps/fparkan-game/src/main.rs
@@ -39,6 +39,7 @@ mod strategic_balance_hud;
#[cfg(windows)]
mod strategic_roster_hud;
mod strategic_view;
+mod strategy_cursor_hud;
#[cfg(windows)]
mod weapon_hud;
#[cfg(test)]
@@ -11466,7 +11467,7 @@ impl StaticVulkanApp {
} else {
let _ = window.set_cursor_grab(CursorGrabMode::None);
}
- window.set_cursor_visible(!active);
+ window.set_cursor_visible(!active && !self.shows_strategy_cursor());
}
}