revamped key rebinding system

This commit is contained in:
2025-06-06 11:11:52 +10:00
parent 4a21701a35
commit c44a730b59
1547 changed files with 6435 additions and 17228 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=2 format=3 uid="uid://ckuu2y4kymshy"]
[gd_scene load_steps=2 format=3 uid="uid://cb8irvp2y2p6g"]
[ext_resource type="Script" uid="uid://y2pxkfjn0wa2" path="res://UI/KeybindEntry.gd" id="1_it8q2"]
@ -8,6 +8,8 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_it8q2")
[node name="ActionName" type="Label" parent="."]
@ -17,21 +19,16 @@ text = "Action Name"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Buttons" type="HBoxContainer" parent="."]
[node name="Buttons" type="GridContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 3
columns = 4
[node name="PrimaryBind" type="Button" parent="Buttons"]
[node name="AddBindButton" type="Button" parent="Buttons"]
custom_minimum_size = Vector2(80, 80)
layout_mode = 2
size_flags_horizontal = 3
text = "+"
icon_alignment = 1
expand_icon = true
[node name="SecondaryBind" type="Button" parent="Buttons"]
layout_mode = 2
size_flags_horizontal = 3
icon_alignment = 1
expand_icon = true
[connection signal="pressed" from="Buttons/PrimaryBind" to="." method="_on_primary_bind_pressed"]
[connection signal="pressed" from="Buttons/SecondaryBind" to="." method="_on_secondary_bind_pressed"]
[connection signal="pressed" from="Buttons/AddBindButton" to="." method="_on_add_bind_button_pressed"]