add gamepad support to menus
This commit is contained in:
26
scenes/ui/components/LanguageSelector.tscn
Normal file
26
scenes/ui/components/LanguageSelector.tscn
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bc1h4c5t2m6vx"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/ui/components/LanguageSelector.gd" id="1_language_selector"]
|
||||
|
||||
[node name="LanguageSelector" type="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
script = ExtResource("1_language_selector")
|
||||
|
||||
[node name="LanguageLeftButton" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "<"
|
||||
|
||||
[node name="LanguageDisplay" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(100, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "English"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="LanguageRightButton" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = ">"
|
||||
|
||||
[connection signal="pressed" from="LanguageLeftButton" to="." method="_on_left_button_pressed"]
|
||||
[connection signal="pressed" from="LanguageRightButton" to="." method="_on_right_button_pressed"]
|
||||
Reference in New Issue
Block a user