diff --git a/menu/seed_selection_menu.tscn b/menu/seed_selection_menu.tscn index 1f03806..027965f 100644 --- a/menu/seed_selection_menu.tscn +++ b/menu/seed_selection_menu.tscn @@ -1,8 +1,14 @@ -[gd_scene load_steps=3 format=3 uid="uid://c36n317rhv8k7"] +[gd_scene load_steps=5 format=3 uid="uid://c36n317rhv8k7"] [ext_resource type="Script" uid="uid://dyynshvsgnepp" path="res://menu/seed_selection_menu.gd" id="1_g2smo"] [ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://images/menu_button.tres" id="2_s4s14"] +[sub_resource type="InputEventAction" id="InputEventAction_g2smo"] +action = &"ui_cancel" + +[sub_resource type="Shortcut" id="Shortcut_s4s14"] +events = [SubResource("InputEventAction_g2smo")] + [node name="SeedSelection" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -63,6 +69,7 @@ layout_mode = 2 unique_name_in_owner = true layout_mode = 2 theme = ExtResource("2_s4s14") +shortcut = SubResource("Shortcut_s4s14") text = "Main menu" [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"] diff --git a/project.godot b/project.godot index 7df4e3d..2b706a0 100644 --- a/project.godot +++ b/project.godot @@ -303,6 +303,7 @@ blink={ "deadzone": 0.2, "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"location":1,"echo":false,"script":null) , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"location":2,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null) ] }