From 4bd868444b78af4e4b3367e377f14f6e6d7b1ff5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 3 Dec 2026 17:06:45 +0400 Subject: feat(ui): adjust satellite map opacity in cockpit and strategy --- apps/fparkan-game/src/strategic_view.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/fparkan-game/src/strategic_view.rs') diff --git a/apps/fparkan-game/src/strategic_view.rs b/apps/fparkan-game/src/strategic_view.rs index ec40358b..016cf788 100644 --- a/apps/fparkan-game/src/strategic_view.rs +++ b/apps/fparkan-game/src/strategic_view.rs @@ -397,9 +397,9 @@ impl StaticVulkanApp { } } } - if pressed { + if event.state == ElementState::Pressed && !self.mission_paused { match event.physical_key { - PhysicalKey::Code(KeyCode::Escape) => { + PhysicalKey::Code(KeyCode::Escape) if !event.repeat => { if !self .overlay .satellite_map @@ -420,9 +420,9 @@ impl StaticVulkanApp { } } } - PhysicalKey::Code(KeyCode::KeyM) => { + PhysicalKey::Code(code) => { if let Some(map) = &mut self.overlay.satellite_map { - map.toggle(); + map.handle_key(code, event.repeat); } } _ => {} -- cgit v1.2.3