Ver Fonte

:beetle: Fix button selection

Was confused about ui_accept event
DricomDragon há 1 ano atrás
pai
commit
f705a0351f
2 ficheiros alterados com 2 adições e 10 exclusões
  1. 1 8
      godot/component/ui/title/title_screen.tscn
  2. 1 2
      godot/project.godot

+ 1 - 8
godot/component/ui/title/title_screen.tscn

@@ -1,13 +1,7 @@
-[gd_scene load_steps=6 format=3 uid="uid://uy3pgfv4q3iy"]
+[gd_scene load_steps=4 format=3 uid="uid://uy3pgfv4q3iy"]
 
 [ext_resource type="Script" path="res://component/ui/title/title_screen.gd" id="1_es6s3"]
 
-[sub_resource type="InputEventAction" id="InputEventAction_4kp4o"]
-action = &"ui_accept"
-
-[sub_resource type="Shortcut" id="Shortcut_2uvkc"]
-events = [SubResource("InputEventAction_4kp4o")]
-
 [sub_resource type="InputEventAction" id="InputEventAction_ucj0l"]
 action = &"ui_cancel"
 
@@ -39,7 +33,6 @@ size_flags_vertical = 4
 unique_name_in_owner = true
 layout_mode = 2
 theme_override_font_sizes/font_size = 33
-shortcut = SubResource("Shortcut_2uvkc")
 text = "Start new game"
 
 [node name="QuitButton" type="Button" parent="Buttons"]

+ 1 - 2
godot/project.godot

@@ -26,13 +26,12 @@ ui_accept={
 "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
 , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194310,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
 , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"echo":false,"script":null)
-, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
+, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
 ]
 }
 ui_select={
 "deadzone": 0.5,
 "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"echo":false,"script":null)
-, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
 ]
 }
 move_left={