|
1 | | -[gd_scene load_steps=11 format=3 uid="uid://b4upvm74gte5"] |
| 1 | +[gd_scene load_steps=12 format=3 uid="uid://b4upvm74gte5"] |
2 | 2 |
|
3 | 3 | [ext_resource type="Texture2D" uid="uid://csuaoaclr7fyb" path="res://assets/kenney_input-prompts/Steam Deck/Default/steamdeck_stick_l_horizontal.png" id="1_6u7qc"] |
4 | | -[ext_resource type="Script" path="res://scenes/control_legend.gd" id="1_hbahy"] |
| 4 | +[ext_resource type="Script" path="res://scenes/control_legend/control_legend.gd" id="1_hbahy"] |
| 5 | +[ext_resource type="StyleBox" uid="uid://db4ob2gq7j8vs" path="res://scenes/control_legend/mode_switch_tab_panel.tres" id="2_j4jmc"] |
5 | 6 | [ext_resource type="Texture2D" uid="uid://ffs8ne7b7ijc" path="res://assets/kenney_input-prompts/Keyboard & Mouse/Default/keyboard_arrows_horizontal.png" id="2_w3q02"] |
6 | 7 | [ext_resource type="Texture2D" uid="uid://blprvur1vdmtb" path="res://assets/kenney_input-prompts/Steam Deck/Default/steamdeck_stick_l_vertical.png" id="3_kfgte"] |
7 | 8 | [ext_resource type="Texture2D" uid="uid://ibjkhn23vq8e" path="res://assets/kenney_input-prompts/Keyboard & Mouse/Default/keyboard_arrows_vertical.png" id="4_r850h"] |
@@ -35,64 +36,100 @@ anchor_left = 1.0 |
35 | 36 | anchor_top = 1.0 |
36 | 37 | anchor_right = 1.0 |
37 | 38 | anchor_bottom = 1.0 |
38 | | -offset_left = -273.0 |
39 | | -offset_top = -268.0 |
| 39 | +offset_left = -233.0 |
| 40 | +offset_top = -278.0 |
40 | 41 | grow_horizontal = 0 |
41 | 42 | grow_vertical = 0 |
42 | 43 | theme_override_styles/panel = SubResource("StyleBoxFlat_b1qas") |
43 | 44 |
|
44 | 45 | [node name="Grid" type="GridContainer" parent="PanelContainer"] |
45 | 46 | layout_mode = 2 |
46 | | -columns = 3 |
| 47 | +columns = 2 |
47 | 48 |
|
48 | 49 | [node name="Label" type="Label" parent="PanelContainer/Grid"] |
49 | 50 | layout_mode = 2 |
50 | 51 | text = "Adjust wind speed" |
51 | 52 | horizontal_alignment = 2 |
52 | 53 |
|
53 | | -[node name="JoystickLeftRight" type="TextureRect" parent="PanelContainer/Grid" groups=["joypad"]] |
| 54 | +[node name="LeftRight" type="TabContainer" parent="PanelContainer/Grid"] |
| 55 | +layout_mode = 2 |
| 56 | +theme_override_styles/panel = ExtResource("2_j4jmc") |
| 57 | +current_tab = 1 |
| 58 | +tabs_visible = false |
| 59 | + |
| 60 | +[node name="JoystickLeftRight" type="TextureRect" parent="PanelContainer/Grid/LeftRight" groups=["joypad"]] |
| 61 | +visible = false |
54 | 62 | layout_mode = 2 |
55 | 63 | texture = ExtResource("1_6u7qc") |
| 64 | +metadata/_tab_index = 0 |
56 | 65 |
|
57 | | -[node name="KeyboardLeftRight" type="TextureRect" parent="PanelContainer/Grid"] |
| 66 | +[node name="KeyboardLeftRight" type="TextureRect" parent="PanelContainer/Grid/LeftRight"] |
58 | 67 | layout_mode = 2 |
59 | 68 | texture = ExtResource("2_w3q02") |
| 69 | +metadata/_tab_index = 1 |
60 | 70 |
|
61 | 71 | [node name="Label2" type="Label" parent="PanelContainer/Grid"] |
62 | 72 | layout_mode = 2 |
63 | 73 | text = "Adjust snow speed" |
64 | 74 | horizontal_alignment = 2 |
65 | 75 |
|
66 | | -[node name="JoystickUpDown" type="TextureRect" parent="PanelContainer/Grid" groups=["joypad"]] |
| 76 | +[node name="UpDown" type="TabContainer" parent="PanelContainer/Grid"] |
| 77 | +layout_mode = 2 |
| 78 | +theme_override_styles/panel = ExtResource("2_j4jmc") |
| 79 | +current_tab = 1 |
| 80 | +tabs_visible = false |
| 81 | + |
| 82 | +[node name="JoystickUpDown" type="TextureRect" parent="PanelContainer/Grid/UpDown" groups=["joypad"]] |
| 83 | +visible = false |
67 | 84 | layout_mode = 2 |
68 | 85 | texture = ExtResource("3_kfgte") |
| 86 | +metadata/_tab_index = 0 |
69 | 87 |
|
70 | | -[node name="KeyboardUpDown" type="TextureRect" parent="PanelContainer/Grid"] |
| 88 | +[node name="KeyboardUpDown" type="TextureRect" parent="PanelContainer/Grid/UpDown"] |
71 | 89 | layout_mode = 2 |
72 | 90 | texture = ExtResource("4_r850h") |
| 91 | +metadata/_tab_index = 1 |
73 | 92 |
|
74 | 93 | [node name="Label3" type="Label" parent="PanelContainer/Grid"] |
75 | 94 | layout_mode = 2 |
76 | 95 | text = "Spawn a visitor" |
77 | 96 | horizontal_alignment = 2 |
78 | 97 |
|
79 | | -[node name="JoypadA" type="TextureRect" parent="PanelContainer/Grid" groups=["joypad"]] |
| 98 | +[node name="Spawn" type="TabContainer" parent="PanelContainer/Grid"] |
| 99 | +layout_mode = 2 |
| 100 | +theme_override_styles/panel = ExtResource("2_j4jmc") |
| 101 | +current_tab = 1 |
| 102 | +tabs_visible = false |
| 103 | + |
| 104 | +[node name="JoypadA" type="TextureRect" parent="PanelContainer/Grid/Spawn" groups=["joypad"]] |
| 105 | +visible = false |
80 | 106 | layout_mode = 2 |
81 | 107 | texture = ExtResource("5_hnd0v") |
| 108 | +metadata/_tab_index = 0 |
82 | 109 |
|
83 | | -[node name="KeyboardEnter" type="TextureRect" parent="PanelContainer/Grid"] |
| 110 | +[node name="KeyboardEnter" type="TextureRect" parent="PanelContainer/Grid/Spawn"] |
84 | 111 | layout_mode = 2 |
85 | 112 | texture = ExtResource("10_kj4r4") |
| 113 | +metadata/_tab_index = 1 |
86 | 114 |
|
87 | 115 | [node name="Label4" type="Label" parent="PanelContainer/Grid"] |
88 | 116 | layout_mode = 2 |
89 | 117 | text = "Start visitor timer" |
90 | 118 | horizontal_alignment = 2 |
91 | 119 |
|
92 | | -[node name="JoypadB" type="TextureRect" parent="PanelContainer/Grid" groups=["joypad"]] |
| 120 | +[node name="RestartTimer" type="TabContainer" parent="PanelContainer/Grid"] |
| 121 | +layout_mode = 2 |
| 122 | +theme_override_styles/panel = ExtResource("2_j4jmc") |
| 123 | +current_tab = 1 |
| 124 | +tabs_visible = false |
| 125 | + |
| 126 | +[node name="JoypadB" type="TextureRect" parent="PanelContainer/Grid/RestartTimer" groups=["joypad"]] |
| 127 | +visible = false |
93 | 128 | layout_mode = 2 |
94 | 129 | texture = ExtResource("6_ycckv") |
| 130 | +metadata/_tab_index = 0 |
95 | 131 |
|
96 | | -[node name="KeyboardBackspace" type="TextureRect" parent="PanelContainer/Grid"] |
| 132 | +[node name="KeyboardBackspace" type="TextureRect" parent="PanelContainer/Grid/RestartTimer"] |
97 | 133 | layout_mode = 2 |
98 | 134 | texture = ExtResource("12_vm4m3") |
| 135 | +metadata/_tab_index = 1 |
0 commit comments