diff options
author | tpart <tpart120@proton.me> | 2024-07-07 20:31:03 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-07-07 20:31:03 +0200 |
commit | 919196c7a8f67e7862d8a4b5e3d1328342a3eb70 (patch) | |
tree | 920619f0d99ed55cef052ad5e91f893521ba882a | |
parent | eda24fecd1e8384087a44904132768e4b5c1e17f (diff) | |
download | hurrycurry-919196c7a8f67e7862d8a4b5e3d1328342a3eb70.tar hurrycurry-919196c7a8f67e7862d8a4b5e3d1328342a3eb70.tar.bz2 hurrycurry-919196c7a8f67e7862d8a4b5e3d1328342a3eb70.tar.zst |
Change start game button from A to X for controllers (xbox-like)
-rw-r--r-- | client/menu/controller_buttons/a.svg | 6 | ||||
-rw-r--r-- | client/menu/controller_buttons/x.svg | 6 | ||||
-rw-r--r-- | client/menu/controller_buttons/x.svg.import (renamed from client/menu/controller_buttons/a.svg.import) | 8 | ||||
-rw-r--r-- | client/menu/lobby.tscn | 7 | ||||
-rw-r--r-- | client/project.godot | 5 |
5 files changed, 18 insertions, 14 deletions
diff --git a/client/menu/controller_buttons/a.svg b/client/menu/controller_buttons/a.svg deleted file mode 100644 index 3b660d91..00000000 --- a/client/menu/controller_buttons/a.svg +++ /dev/null @@ -1,6 +0,0 @@ -<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <defs/> - <g> - <path stroke="none" fill="#7DB700" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M38 42 L42 42 34 22 30 22 22 42 26 42 27.6 38 36.4 38 38 42 M32 27 L34.8 34 29.2 34 32 27"/> - </g> -</svg>
\ No newline at end of file diff --git a/client/menu/controller_buttons/x.svg b/client/menu/controller_buttons/x.svg new file mode 100644 index 00000000..9a5df2ea --- /dev/null +++ b/client/menu/controller_buttons/x.svg @@ -0,0 +1,6 @@ +<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs/> + <g> + <path stroke="none" fill="#009FEB" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M23 25 L29 32 23 39 23 40 25.25 42 26.4 42 32 35.5 37.65 42 38.75 42 41 40 41 39 35 32 41 25 41 24 38.75 22 37.65 22 32 28.55 26.4 22 25.25 22 23 24 23 25"/> + </g> +</svg>
\ No newline at end of file diff --git a/client/menu/controller_buttons/a.svg.import b/client/menu/controller_buttons/x.svg.import index 236e085f..f9acb5ec 100644 --- a/client/menu/controller_buttons/a.svg.import +++ b/client/menu/controller_buttons/x.svg.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://bgkhnp15u1utp" -path="res://.godot/imported/a.svg-207eeddefe74f1190424a9aa1808de8f.ctex" +uid="uid://bsx6fo7mv2u6a" +path="res://.godot/imported/x.svg-94cb27dd83c134d85e2e1ce8d9481359.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://menu/controller_buttons/a.svg" -dest_files=["res://.godot/imported/a.svg-207eeddefe74f1190424a9aa1808de8f.ctex"] +source_file="res://menu/controller_buttons/x.svg" +dest_files=["res://.godot/imported/x.svg-94cb27dd83c134d85e2e1ce8d9481359.ctex"] [params] diff --git a/client/menu/lobby.tscn b/client/menu/lobby.tscn index 38b2a5b9..df58915c 100644 --- a/client/menu/lobby.tscn +++ b/client/menu/lobby.tscn @@ -8,7 +8,7 @@ [ext_resource type="Texture2D" uid="uid://b33qmctbpf48g" path="res://menu/arrow_hover.svg" id="5_odwav"] [ext_resource type="Texture2D" uid="uid://by3qsrpxnfq4w" path="res://menu/arrow_focus.svg" id="6_tulu3"] [ext_resource type="PackedScene" uid="uid://b1f7bgn65j7b5" path="res://menu/controller_buttons/controller_button.tscn" id="7_t6mox"] -[ext_resource type="Texture2D" uid="uid://bgkhnp15u1utp" path="res://menu/controller_buttons/a.svg" id="8_chn2q"] +[ext_resource type="Texture2D" uid="uid://bsx6fo7mv2u6a" path="res://menu/controller_buttons/x.svg" id="9_q14bw"] [node name="Lobby" type="Control" groups=["no_auto_focus"]] layout_mode = 3 @@ -100,10 +100,9 @@ layout_mode = 2 custom_minimum_size = Vector2(148, 0) layout_mode = 2 text = "Start Game" -icon = ExtResource("8_chn2q") expand_icon = true -controller_texture = ExtResource("8_chn2q") -press_action = "ui_accept" +controller_texture = ExtResource("9_q14bw") +press_action = "start_game" [connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Left" to="." method="_on_left_pressed"] [connection signal="pressed" from="VBoxContainer/Bottom/MarginContainer/VBoxContainer/HBoxContainer/Right" to="." method="_on_right_pressed"] diff --git a/client/project.godot b/client/project.godot index 8a9b0003..c8456e23 100644 --- a/client/project.godot +++ b/client/project.godot @@ -161,6 +161,11 @@ next={ , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":true,"script":null) ] } +start_game={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":2,"pressure":0.0,"pressed":true,"script":null) +] +} [internationalization] |