-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHUD.tscn
204 lines (175 loc) · 5.84 KB
/
HUD.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[gd_scene load_steps=7 format=2]
[ext_resource path="res://GUI/HUD.gd" type="Script" id=1]
[ext_resource path="res://GUI/ServoSlider.tscn" type="PackedScene" id=2]
[ext_resource path="res://GUI/TextureButton.gd" type="Script" id=3]
[ext_resource path="res://Serial/Com.gd" type="Script" id=4]
[ext_resource path="res://GUI/CoordPanel.tscn" type="PackedScene" id=5]
[ext_resource path="res://FileDialog.gd" type="Script" id=6]
[node name="HUD" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -3.1579
margin_right = -3.1579
script = ExtResource( 1 )
[node name="ServoPanel" type="Panel" parent="."]
editor/display_folded = true
anchor_left = 1.0
anchor_right = 1.0
margin_left = -306.0
margin_top = 45.0
margin_right = -40.0
margin_bottom = 457.0
[node name="VBox" type="VBoxContainer" parent="ServoPanel"]
anchor_top = 0.5
anchor_right = 0.93
anchor_bottom = 0.5
margin_left = 20.0
margin_top = -202.0
margin_right = -1.38
margin_bottom = 130.0
custom_constants/separation = 23
[node name="GripperSlider" parent="ServoPanel/VBox" instance=ExtResource( 2 )]
editor/display_folded = true
[node name="WristSlider" parent="ServoPanel/VBox" instance=ExtResource( 2 )]
editor/display_folded = true
margin_top = 57.0
margin_bottom = 91.0
[node name="ElbowSlider" parent="ServoPanel/VBox" instance=ExtResource( 2 )]
editor/display_folded = true
margin_top = 114.0
margin_bottom = 148.0
[node name="ShoulderSlider" parent="ServoPanel/VBox" instance=ExtResource( 2 )]
editor/display_folded = true
margin_top = 171.0
margin_bottom = 205.0
[node name="BaseSlider" parent="ServoPanel/VBox" instance=ExtResource( 2 )]
editor/display_folded = true
margin_top = 228.0
margin_bottom = 262.0
[node name="SelectIK" type="CheckButton" parent="ServoPanel/VBox"]
margin_top = 285.0
margin_right = 226.0
margin_bottom = 325.0
hint_tooltip = "Select between Manual servo control and Inverse Kinematics"
pressed = true
text = "Inverse Kinematics"
[node name="TextureButton" type="Button" parent="ServoPanel"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -40.5
margin_top = -58.0
margin_right = 40.5
margin_bottom = -26.0
text = "Port Config"
script = ExtResource( 3 )
[node name="SerialSettings" type="PopupPanel" parent="."]
visible = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -130.5
margin_top = -76.0002
margin_right = 130.5
margin_bottom = 76.0002
[node name="VBoxContainer" type="VBoxContainer" parent="SerialSettings"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -126.5
margin_top = -72.0002
margin_right = 126.5
margin_bottom = 72.0002
custom_constants/separation = 20
[node name="HBoxPort" type="HBoxContainer" parent="SerialSettings/VBoxContainer"]
margin_right = 253.0
margin_bottom = 20.0
[node name="UpdateButton" type="Button" parent="SerialSettings/VBoxContainer/HBoxPort"]
margin_right = 60.0
margin_bottom = 20.0
text = "Refresh"
[node name="PortList" type="OptionButton" parent="SerialSettings/VBoxContainer/HBoxPort"]
margin_left = 64.0
margin_right = 164.0
margin_bottom = 20.0
rect_min_size = Vector2( 100, 0 )
[node name="HBoxBaudRate" type="HBoxContainer" parent="SerialSettings/VBoxContainer"]
margin_top = 40.0
margin_right = 253.0
margin_bottom = 60.0
alignment = 1
[node name="Connect" type="Button" parent="SerialSettings/VBoxContainer/HBoxBaudRate"]
margin_left = 94.0
margin_right = 158.0
margin_bottom = 20.0
text = "Connect"
[node name="Com" type="Node" parent="."]
script = ExtResource( 4 )
[node name="CoordPanel" parent="." instance=ExtResource( 5 )]
margin_left = 40.0
margin_top = 40.0
margin_right = 216.0
margin_bottom = 123.0
[node name="PosePanel" type="Panel" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 40.0
margin_top = -122.0
margin_right = 373.0
margin_bottom = -40.0
[node name="MarginContainer" type="MarginContainer" parent="PosePanel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 7.0
custom_constants/margin_right = 20
custom_constants/margin_top = 20
custom_constants/margin_left = 20
custom_constants/margin_bottom = 20
[node name="HBoxContainer" type="HBoxContainer" parent="PosePanel/MarginContainer"]
margin_left = 20.0
margin_top = 20.0
margin_right = 320.0
margin_bottom = 62.0
[node name="Button" type="Button" parent="PosePanel/MarginContainer/HBoxContainer"]
margin_right = 72.0
margin_bottom = 42.0
text = "Add Pose"
[node name="Button2" type="Button" parent="PosePanel/MarginContainer/HBoxContainer"]
margin_left = 76.0
margin_right = 148.0
margin_bottom = 42.0
rect_min_size = Vector2( 72, 0 )
text = "Play"
[node name="Button3" type="Button" parent="PosePanel/MarginContainer/HBoxContainer"]
margin_left = 152.0
margin_right = 224.0
margin_bottom = 42.0
rect_min_size = Vector2( 72, 0 )
text = "Load"
[node name="Button4" type="Button" parent="PosePanel/MarginContainer/HBoxContainer"]
margin_left = 228.0
margin_right = 300.0
margin_bottom = 42.0
rect_min_size = Vector2( 72, 0 )
text = "Save"
[node name="FileDialog" type="FileDialog" parent="."]
visible = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -180.0
margin_top = -96.5
margin_right = 180.0
margin_bottom = 96.5
popup_exclusive = true
script = ExtResource( 6 )
[connection signal="toggled" from="ServoPanel/VBox/SelectIK" to="." method="_on_SelectIK_toggled"]
[connection signal="pressed" from="ServoPanel/TextureButton" to="ServoPanel/TextureButton" method="_on_TextureButton_pressed"]
[connection signal="pressed" from="SerialSettings/VBoxContainer/HBoxPort/UpdateButton" to="." method="_on_UpdateButton_pressed"]
[connection signal="item_selected" from="SerialSettings/VBoxContainer/HBoxPort/PortList" to="." method="_on_PortList_item_selected"]
[connection signal="pressed" from="SerialSettings/VBoxContainer/HBoxBaudRate/Connect" to="." method="_on_Connect_pressed"]
[editable path="ServoPanel/VBox/BaseSlider"]