|
| 1 | +[gd_scene load_steps=4 format=3 uid="uid://rx1k71lk3xi2"] |
| 2 | + |
| 3 | +[ext_resource type="Script" uid="uid://ddqdj7ehf48j5" path="res://lib/tracking/gamepad/config.gd" id="1_ya4c7"] |
| 4 | +[ext_resource type="PackedScene" uid="uid://d2a67yxp08esv" path="res://ui/modal/modal.tscn" id="1_yo73d"] |
| 5 | +[ext_resource type="PackedScene" uid="uid://hpg52fgw7kdc" path="res://studio/hud/input_recorder/input_rec_popup.tscn" id="2_ya4c7"] |
| 6 | + |
| 7 | +[node name="Config" type="PanelContainer"] |
| 8 | +anchors_preset = 15 |
| 9 | +anchor_right = 1.0 |
| 10 | +anchor_bottom = 1.0 |
| 11 | +grow_horizontal = 2 |
| 12 | +grow_vertical = 2 |
| 13 | +script = ExtResource("1_ya4c7") |
| 14 | + |
| 15 | +[node name="VBoxContainer" type="VBoxContainer" parent="."] |
| 16 | +layout_mode = 2 |
| 17 | + |
| 18 | +[node name="Label" type="Label" parent="VBoxContainer"] |
| 19 | +layout_mode = 2 |
| 20 | +text = "Gamepad" |
| 21 | + |
| 22 | +[node name="GamepadIndex" type="OptionButton" parent="VBoxContainer"] |
| 23 | +unique_name_in_owner = true |
| 24 | +layout_mode = 2 |
| 25 | +selected = 0 |
| 26 | +item_count = 1 |
| 27 | +popup/item_0/text = "Keyboard" |
| 28 | +popup/item_0/id = 9999 |
| 29 | + |
| 30 | +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] |
| 31 | +layout_mode = 2 |
| 32 | + |
| 33 | +[node name="DpadMapping" type="CheckButton" parent="VBoxContainer"] |
| 34 | +layout_mode = 2 |
| 35 | +text = "Map DPad to Left Stick" |
| 36 | + |
| 37 | +[node name="KeytoGamepad" type="GridContainer" parent="VBoxContainer"] |
| 38 | +unique_name_in_owner = true |
| 39 | +layout_mode = 2 |
| 40 | +theme_override_constants/h_separation = 8 |
| 41 | +columns = 4 |
| 42 | + |
| 43 | +[node name="Modal" parent="." instance=ExtResource("1_yo73d")] |
| 44 | +unique_name_in_owner = true |
| 45 | +layer = 10 |
| 46 | +visible = false |
| 47 | + |
| 48 | +[node name="CenterContainer" type="CenterContainer" parent="Modal"] |
| 49 | +anchors_preset = 15 |
| 50 | +anchor_right = 1.0 |
| 51 | +anchor_bottom = 1.0 |
| 52 | +grow_horizontal = 2 |
| 53 | +grow_vertical = 2 |
| 54 | + |
| 55 | +[node name="InputRecPopup" parent="Modal/CenterContainer" instance=ExtResource("2_ya4c7")] |
| 56 | +unique_name_in_owner = true |
| 57 | +layout_mode = 2 |
| 58 | +allow_modifiers = false |
| 59 | +allow_mouse_buttons = false |
| 60 | + |
| 61 | +[connection signal="item_selected" from="VBoxContainer/GamepadIndex" to="." method="_on_gamepad_index_item_selected"] |
| 62 | +[connection signal="toggled" from="VBoxContainer/DpadMapping" to="." method="_on_dpad_mapping_toggled"] |
0 commit comments