283 lines
6.3 KiB
Plaintext
283 lines
6.3 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://Scripts/Player.gd" type="Script" id=1]
|
|
|
|
[sub_resource type="CapsuleMesh" id=1]
|
|
radius = 0.1
|
|
mid_height = 0.5
|
|
|
|
[node name="Player" type="Spatial"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="."]
|
|
mesh = SubResource( 1 )
|
|
material/0 = null
|
|
|
|
[node name="MainPanel" type="Panel" parent="."]
|
|
visible = false
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
margin_left = -390.0
|
|
margin_top = 15.0
|
|
margin_right = 390.0
|
|
margin_bottom = 50.0
|
|
grow_horizontal = 2
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="TimeBar" type="HSlider" parent="MainPanel"]
|
|
anchor_top = 0.5
|
|
anchor_right = 0.6
|
|
anchor_bottom = 0.5
|
|
margin_left = 10.0
|
|
grow_vertical = 2
|
|
max_value = 5.0
|
|
step = 0.01
|
|
tick_count = 6
|
|
ticks_on_borders = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="AddButton" type="Button" parent="MainPanel"]
|
|
anchor_left = 0.6
|
|
anchor_top = 0.5
|
|
anchor_right = 0.7
|
|
anchor_bottom = 0.5
|
|
margin_left = 6.0
|
|
margin_right = -1.0
|
|
grow_vertical = 2
|
|
text = "Add"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="RemoveButton" type="Button" parent="MainPanel"]
|
|
anchor_left = 0.7
|
|
anchor_top = 0.5
|
|
anchor_right = 0.8
|
|
anchor_bottom = 0.5
|
|
margin_left = 5.0
|
|
margin_right = -3.0
|
|
grow_vertical = 2
|
|
text = "Remove"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ClearButton" type="Button" parent="MainPanel"]
|
|
anchor_left = 0.8
|
|
anchor_top = 0.5
|
|
anchor_right = 0.9
|
|
anchor_bottom = 0.5
|
|
margin_left = 3.0
|
|
margin_right = -5.0
|
|
grow_vertical = 2
|
|
text = "Clear"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="EndTurnButton" type="Button" parent="MainPanel"]
|
|
anchor_left = 0.9
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
margin_left = 1.0
|
|
margin_right = -6.0
|
|
grow_vertical = 2
|
|
text = "End Turn"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ThrustPanel" type="Panel" parent="."]
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = -300.0
|
|
margin_top = -300.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="LabelHolder" type="Control" parent="ThrustPanel"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="ThrustPanel/LabelHolder"]
|
|
anchor_left = 0.2
|
|
anchor_top = 0.25
|
|
anchor_right = 0.2
|
|
anchor_bottom = 0.25
|
|
margin_left = -44.0
|
|
margin_top = -7.0
|
|
margin_right = 39.0
|
|
margin_bottom = 7.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Linear Thrust"
|
|
|
|
[node name="Label3" type="Label" parent="ThrustPanel/LabelHolder"]
|
|
anchor_left = 0.4
|
|
anchor_top = 0.5
|
|
anchor_right = 0.4
|
|
anchor_bottom = 0.5
|
|
margin_left = -4.0
|
|
margin_top = -7.0
|
|
margin_right = 4.0
|
|
margin_bottom = 7.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "X"
|
|
|
|
[node name="Label4" type="Label" parent="ThrustPanel/LabelHolder"]
|
|
anchor_left = 0.8
|
|
anchor_top = 0.5
|
|
anchor_right = 0.8
|
|
anchor_bottom = 0.5
|
|
margin_left = -4.0
|
|
margin_top = -7.0
|
|
margin_right = 4.0
|
|
margin_bottom = 7.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Z"
|
|
|
|
[node name="Label5" type="Label" parent="ThrustPanel/LabelHolder"]
|
|
anchor_left = 0.6
|
|
anchor_top = 0.5
|
|
anchor_right = 0.6
|
|
anchor_bottom = 0.5
|
|
margin_left = -3.5
|
|
margin_top = -7.0
|
|
margin_right = 3.5
|
|
margin_bottom = 7.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Y"
|
|
|
|
[node name="Label2" type="Label" parent="ThrustPanel/LabelHolder"]
|
|
anchor_left = 0.2
|
|
anchor_top = 0.75
|
|
anchor_right = 0.2
|
|
anchor_bottom = 0.75
|
|
margin_left = -47.5
|
|
margin_top = -7.0
|
|
margin_right = 42.5
|
|
margin_bottom = 7.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Vernier Thrust"
|
|
|
|
[node name="XLin" type="VSlider" parent="ThrustPanel"]
|
|
anchor_left = 0.4
|
|
anchor_top = 0.05
|
|
anchor_right = 0.4
|
|
anchor_bottom = 0.45
|
|
margin_left = -8.0
|
|
margin_right = 8.0
|
|
grow_horizontal = 2
|
|
min_value = -1.0
|
|
max_value = 1.0
|
|
step = 0.01
|
|
tick_count = 3
|
|
ticks_on_borders = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="XRot" type="VSlider" parent="ThrustPanel"]
|
|
anchor_left = 0.4
|
|
anchor_top = 0.55
|
|
anchor_right = 0.4
|
|
anchor_bottom = 0.95
|
|
margin_left = -8.0
|
|
margin_right = 8.0
|
|
grow_horizontal = 2
|
|
min_value = -1.0
|
|
max_value = 1.0
|
|
step = 0.001
|
|
tick_count = 3
|
|
ticks_on_borders = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="YLin" type="VSlider" parent="ThrustPanel"]
|
|
anchor_left = 0.6
|
|
anchor_top = 0.05
|
|
anchor_right = 0.6
|
|
anchor_bottom = 0.45
|
|
margin_left = -8.0
|
|
margin_right = 8.0
|
|
grow_horizontal = 2
|
|
min_value = -1.0
|
|
max_value = 1.0
|
|
step = 0.001
|
|
tick_count = 3
|
|
ticks_on_borders = true
|
|
|
|
[node name="YRot" type="VSlider" parent="ThrustPanel"]
|
|
anchor_left = 0.6
|
|
anchor_top = 0.55
|
|
anchor_right = 0.6
|
|
anchor_bottom = 0.95
|
|
margin_left = -8.0
|
|
margin_right = 8.0
|
|
grow_horizontal = 2
|
|
min_value = -1.0
|
|
max_value = 1.0
|
|
step = 0.001
|
|
tick_count = 3
|
|
ticks_on_borders = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ZLin" type="VSlider" parent="ThrustPanel"]
|
|
anchor_left = 0.8
|
|
anchor_top = 0.05
|
|
anchor_right = 0.8
|
|
anchor_bottom = 0.45
|
|
margin_left = -8.0
|
|
margin_right = 8.0
|
|
grow_horizontal = 2
|
|
min_value = -1.0
|
|
max_value = 1.0
|
|
step = 0.001
|
|
tick_count = 3
|
|
ticks_on_borders = true
|
|
|
|
[node name="ZRot" type="VSlider" parent="ThrustPanel"]
|
|
anchor_left = 0.8
|
|
anchor_top = 0.55
|
|
anchor_right = 0.8
|
|
anchor_bottom = 0.95
|
|
margin_left = -8.0
|
|
margin_top = -0.263489
|
|
margin_right = 8.0
|
|
margin_bottom = -0.263489
|
|
grow_horizontal = 2
|
|
min_value = -1.0
|
|
max_value = 1.0
|
|
step = 0.001
|
|
tick_count = 3
|
|
ticks_on_borders = true
|
|
[connection signal="value_changed" from="MainPanel/TimeBar" to="." method="_on_TimeBar_value_changed"]
|
|
[connection signal="pressed" from="MainPanel/AddButton" to="." method="_on_AddButton_pressed"]
|
|
[connection signal="pressed" from="MainPanel/RemoveButton" to="." method="_on_RemoveButton_pressed"]
|
|
[connection signal="pressed" from="MainPanel/ClearButton" to="." method="_on_ClearButton_pressed"]
|
|
[connection signal="pressed" from="MainPanel/EndTurnButton" to="." method="_on_EndTurnButton_pressed"]
|
|
[connection signal="value_changed" from="ThrustPanel/XLin" to="." method="_on_XLin_value_changed"]
|
|
[connection signal="value_changed" from="ThrustPanel/XRot" to="." method="_on_XRot_value_changed"]
|
|
[connection signal="value_changed" from="ThrustPanel/YLin" to="." method="_on_YLin_value_changed"]
|
|
[connection signal="value_changed" from="ThrustPanel/YRot" to="." method="_on_YRot_value_changed"]
|
|
[connection signal="value_changed" from="ThrustPanel/ZLin" to="." method="_on_ZLin_value_changed"]
|
|
[connection signal="value_changed" from="ThrustPanel/ZRot" to="." method="_on_ZRot_value_changed"]
|