2020-07-07 00:47:29 +00:00
|
|
|
[gd_scene load_steps=5 format=2]
|
2020-07-06 22:00:39 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://Actors/Objects/Computer/UI/ControlComp.gd" type="Script" id=1]
|
2020-07-07 00:47:29 +00:00
|
|
|
[ext_resource path="res://Graphics/UI/ui-popup-panel.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://Graphics/UI/ui_theme.tres" type="Theme" id=3]
|
|
|
|
[ext_resource path="res://Graphics/unshaded_mat.tres" type="Material" id=4]
|
2020-07-06 22:00:39 +00:00
|
|
|
|
2020-07-07 00:47:29 +00:00
|
|
|
[node name="ControlComp" type="Control"]
|
|
|
|
material = ExtResource( 4 )
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_left = -100.0
|
|
|
|
margin_top = -150.0
|
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = -20.0
|
2020-07-06 22:09:37 +00:00
|
|
|
mouse_filter = 1
|
2020-07-06 22:00:39 +00:00
|
|
|
script = ExtResource( 1 )
|
2020-07-07 00:47:29 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-07-06 22:00:39 +00:00
|
|
|
|
2020-07-07 00:47:29 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
|
|
material = ExtResource( 4 )
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
margin_left = -8.0
|
|
|
|
margin_top = 111.826
|
|
|
|
margin_right = 8.27014
|
|
|
|
margin_bottom = 143.855
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
stretch_mode = 3
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="NinePatchRect" type="NinePatchRect" parent="."]
|
|
|
|
material = ExtResource( 4 )
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
region_rect = Rect2( 0, 0, 16, 16 )
|
|
|
|
patch_margin_left = 4
|
|
|
|
patch_margin_top = 4
|
|
|
|
patch_margin_right = 4
|
|
|
|
patch_margin_bottom = 5
|
|
|
|
axis_stretch_horizontal = 1
|
2020-07-06 22:00:39 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Container" type="VBoxContainer" parent="."]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
2020-07-06 22:00:39 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 10.0
|
|
|
|
margin_top = 10.0
|
|
|
|
margin_right = -10.0
|
|
|
|
margin_bottom = -10.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
custom_constants/separation = 20
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="VelocityBox" type="VBoxContainer" parent="Container"]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_right = 180.0
|
|
|
|
margin_bottom = 45.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
alignment = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ShipVelocityLabel" type="Label" parent="Container/VelocityBox"]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
|
|
|
margin_top = 3.0
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_right = 180.0
|
2020-07-07 00:47:29 +00:00
|
|
|
margin_bottom = 21.0
|
2020-07-06 22:09:37 +00:00
|
|
|
mouse_filter = 1
|
2020-07-07 00:47:29 +00:00
|
|
|
theme = ExtResource( 3 )
|
2020-07-06 22:00:39 +00:00
|
|
|
text = "Ship velocity"
|
|
|
|
|
|
|
|
[node name="HSlider" type="HSlider" parent="Container/VelocityBox"]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
|
|
|
margin_top = 25.0
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_right = 180.0
|
2020-07-07 00:47:29 +00:00
|
|
|
margin_bottom = 41.0
|
2020-07-06 22:09:37 +00:00
|
|
|
mouse_filter = 1
|
2020-07-06 22:00:39 +00:00
|
|
|
max_value = 1000.0
|
|
|
|
value = 1000.0
|
|
|
|
tick_count = 10
|
|
|
|
ticks_on_borders = true
|
|
|
|
|
|
|
|
[node name="DirectionBox" type="VBoxContainer" parent="Container"]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_top = 65.0
|
|
|
|
margin_right = 180.0
|
|
|
|
margin_bottom = 110.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
alignment = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ShipDirectionLabel" type="Label" parent="Container/DirectionBox"]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
|
|
|
margin_top = 3.0
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_right = 180.0
|
2020-07-07 00:47:29 +00:00
|
|
|
margin_bottom = 21.0
|
2020-07-06 22:09:37 +00:00
|
|
|
mouse_filter = 1
|
2020-07-07 00:47:29 +00:00
|
|
|
theme = ExtResource( 3 )
|
2020-07-06 22:00:39 +00:00
|
|
|
text = "Ship direction"
|
|
|
|
|
|
|
|
[node name="HSlider" type="HSlider" parent="Container/DirectionBox"]
|
2020-07-07 00:47:29 +00:00
|
|
|
material = ExtResource( 4 )
|
|
|
|
margin_top = 25.0
|
2020-07-06 22:00:39 +00:00
|
|
|
margin_right = 180.0
|
2020-07-07 00:47:29 +00:00
|
|
|
margin_bottom = 41.0
|
2020-07-06 22:09:37 +00:00
|
|
|
mouse_filter = 1
|
2020-07-06 22:00:39 +00:00
|
|
|
max_value = 360.0
|
|
|
|
tick_count = 18
|
|
|
|
ticks_on_borders = true
|
|
|
|
[connection signal="value_changed" from="Container/VelocityBox/HSlider" to="." method="_ship_velocity_changed"]
|
|
|
|
[connection signal="value_changed" from="Container/DirectionBox/HSlider" to="." method="_ship_direction_changed"]
|