fix options screen focus issue

This commit is contained in:
Haze Weathers 2023-03-10 15:24:58 -05:00
parent ebac7e2da2
commit 319eec7f5b
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ func _gui_input(event):
accept_event() accept_event()
func _unhandled_input(event): func _unhandled_input(event):
if !has_focus(): if !visible:
return return
if event.is_action_pressed("ui_accept"): if event.is_action_pressed("ui_accept"):
apply_options() apply_options()

View file

@ -53,7 +53,6 @@ margin_bottom = 152.0
theme = ExtResource( 2 ) theme = ExtResource( 2 )
[node name="Game" type="VBoxContainer" parent="Tabs"] [node name="Game" type="VBoxContainer" parent="Tabs"]
visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
margin_top = 7.0 margin_top = 7.0
@ -122,6 +121,7 @@ text = "BPM"
align = 0 align = 0
[node name="Video" type="VBoxContainer" parent="Tabs"] [node name="Video" type="VBoxContainer" parent="Tabs"]
visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
margin_top = 7.0 margin_top = 7.0