add gamepad support to menus
This commit is contained in:
26
scenes/ui/components/ValueStepper.tscn
Normal file
26
scenes/ui/components/ValueStepper.tscn
Normal 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"]
|
||||
Reference in New Issue
Block a user