add gamepad support to menus

This commit is contained in:
2025-09-25 11:11:49 +04:00
parent 301d858ea5
commit bacc66d26c
16 changed files with 1122 additions and 68 deletions

View File

@@ -0,0 +1,26 @@
[gd_scene load_steps=2 format=3 uid="uid://cb6k05r8t7l4l"]
[ext_resource type="Script" path="res://scenes/ui/components/ValueStepper.gd" id="1_value_stepper"]
[node name="ValueStepper" type="HBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
script = ExtResource("1_value_stepper")
[node name="LeftButton" type="Button" parent="."]
layout_mode = 2
text = "<"
[node name="ValueDisplay" type="Label" parent="."]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
size_flags_horizontal = 4
text = "Value"
horizontal_alignment = 1
[node name="RightButton" type="Button" parent="."]
layout_mode = 2
text = ">"
[connection signal="pressed" from="LeftButton" to="." method="_on_left_button_pressed"]
[connection signal="pressed" from="RightButton" to="." method="_on_right_button_pressed"]