Added keyboard control to main menu. Reworked logic

This commit is contained in:
2025-10-19 19:15:03 +03:00
parent 83b14d31cd
commit e09303f1b8
12 changed files with 349 additions and 84 deletions
+12 -1
View File
@@ -1,7 +1,13 @@
[gd_scene load_steps=2 format=3 uid="uid://btr60idiit4y7"]
[gd_scene load_steps=4 format=3 uid="uid://btr60idiit4y7"]
[ext_resource type="Script" uid="uid://ceng1u112aqg0" path="res://menu/options.gd" id="1_61pji"]
[sub_resource type="InputEventAction" id="InputEventAction_61pji"]
action = &"ui_cancel"
[sub_resource type="Shortcut" id="Shortcut_1tdpy"]
events = [SubResource("InputEventAction_61pji")]
[node name="Options" type="Control"]
layout_mode = 3
anchors_preset = 0
@@ -20,6 +26,7 @@ layout_mode = 2
columns = 2
[node name="FullscreenLabel" type="Label" parent="VBoxContainer/OptionsGridContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Fullscreen"
@@ -28,6 +35,7 @@ unique_name_in_owner = true
layout_mode = 2
[node name="WindowFactorLabel" type="Label" parent="VBoxContainer/OptionsGridContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Window Factor"
@@ -54,11 +62,14 @@ layout_mode = 2
alignment = 2
[node name="CreditsButton" type="Button" parent="VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Credits"
[node name="BackButton" type="Button" parent="VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
shortcut = SubResource("Shortcut_1tdpy")
text = "Back"
[connection signal="toggled" from="VBoxContainer/OptionsGridContainer/FullscreenCheckButton" to="." method="_on_fullscreen_check_button_toggled"]