From 90cc800c36c6c8f974c2f96fa6499ad3486a7ef1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 20:58:03 +0400 Subject: fix(ui): toggle the current mission hint with F2 --- apps/fparkan-game/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'apps/fparkan-game/src/main.rs') diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index e299add3..901db61a 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -12411,6 +12411,18 @@ impl ApplicationHandler for StaticVulkanApp { } return; } + #[cfg(windows)] + if code == KeyCode::F2 { + if event.state == ElementState::Pressed + && !event.repeat + && !self.mission_paused + { + if let Some(hints) = &mut self.mission_hints { + hints.toggle_current(); + } + } + return; + } if code == KeyCode::Escape && event.state == ElementState::Pressed { if self.boarded_hero_index.is_some() { if !self.mission_paused && !event.repeat { -- cgit v1.2.3