From 319eec7f5b6151d66add15481eb416e43df1b588 Mon Sep 17 00:00:00 2001 From: Haze Weathers Date: Fri, 10 Mar 2023 15:24:58 -0500 Subject: [PATCH] fix options screen focus issue --- objects/hud/options_screen.gd | 2 +- objects/hud/options_screen.tscn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/hud/options_screen.gd b/objects/hud/options_screen.gd index 30e80a3..c688f01 100644 --- a/objects/hud/options_screen.gd +++ b/objects/hud/options_screen.gd @@ -70,7 +70,7 @@ func _gui_input(event): accept_event() func _unhandled_input(event): - if !has_focus(): + if !visible: return if event.is_action_pressed("ui_accept"): apply_options() diff --git a/objects/hud/options_screen.tscn b/objects/hud/options_screen.tscn index 18082f1..2cbeb5e 100644 --- a/objects/hud/options_screen.tscn +++ b/objects/hud/options_screen.tscn @@ -53,7 +53,6 @@ margin_bottom = 152.0 theme = ExtResource( 2 ) [node name="Game" type="VBoxContainer" parent="Tabs"] -visible = false anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 7.0 @@ -122,6 +121,7 @@ text = "BPM" align = 0 [node name="Video" type="VBoxContainer" parent="Tabs"] +visible = false anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 7.0