2018-09-12 02:59:22 +02:00
|
|
|
[gd_scene load_steps=7 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://theme/theme.tres" type="Theme" id=1]
|
|
|
|
[ext_resource path="res://theme/labels/Title.tscn" type="PackedScene" id=2]
|
|
|
|
[ext_resource path="res://theme/fonts/montserrat_extra_bold_24.tres" type="DynamicFont" id=3]
|
|
|
|
[ext_resource path="res://theme/progressbar/foreground_stylebox_red.tres" type="StyleBox" id=4]
|
|
|
|
[ext_resource path="res://theme/progressbar/foreground_stylebox_blue.tres" type="StyleBox" id=5]
|
|
|
|
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
|
|
script/source = "extends VBoxContainer
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
set_process(false)
|
|
|
|
|
|
|
|
func _process(delta):
|
|
|
|
for p in get_children():
|
|
|
|
$ProgressBarBlue.value += 10 * delta
|
|
|
|
$ProgressBarRed.value += 10 * delta
|
|
|
|
|
|
|
|
|
|
|
|
func _on_Button_button_down():
|
|
|
|
set_process(true)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_Button_button_up():
|
|
|
|
set_process(false)
|
|
|
|
"
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="Control" type="Control"]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 600.0
|
|
|
|
theme = ExtResource( 1 )
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="Panel" type="Panel" parent="."]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_left = 128.0
|
|
|
|
margin_top = 64.0
|
|
|
|
margin_right = 896.0
|
|
|
|
margin_bottom = 536.0
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="Title" parent="Panel" instance=ExtResource( 2 )]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_right = 767.0
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_left = 128.0
|
|
|
|
margin_top = 180.0
|
|
|
|
margin_right = 524.0
|
|
|
|
margin_bottom = 424.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
custom_constants/separation = 5
|
|
|
|
script = SubResource( 1 )
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="Speed" type="Label" parent="Panel/VBoxContainer"]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_right = 396.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
custom_fonts/font = ExtResource( 3 )
|
|
|
|
text = "Speed"
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="ProgressBarRed" type="ProgressBar" parent="Panel/VBoxContainer"]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_top = 45.0
|
|
|
|
margin_right = 396.0
|
2019-06-05 01:45:41 +02:00
|
|
|
margin_bottom = 85.0
|
2018-09-12 02:59:22 +02:00
|
|
|
custom_styles/fg = ExtResource( 4 )
|
|
|
|
step = 1.0
|
|
|
|
percent_visible = false
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="BlankSpace" type="ReferenceRect" parent="Panel/VBoxContainer"]
|
|
|
|
margin_top = 90.0
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_right = 396.0
|
2019-06-05 01:45:41 +02:00
|
|
|
margin_bottom = 154.0
|
2018-09-12 02:59:22 +02:00
|
|
|
rect_min_size = Vector2( 0, 16 )
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="Acceleration" type="Label" parent="Panel/VBoxContainer"]
|
|
|
|
margin_top = 159.0
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_right = 396.0
|
2019-06-05 01:45:41 +02:00
|
|
|
margin_bottom = 199.0
|
2018-09-12 02:59:22 +02:00
|
|
|
custom_fonts/font = ExtResource( 3 )
|
|
|
|
text = "Acceleration"
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="ProgressBarBlue" type="ProgressBar" parent="Panel/VBoxContainer"]
|
|
|
|
margin_top = 204.0
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_right = 396.0
|
|
|
|
margin_bottom = 244.0
|
|
|
|
custom_styles/fg = ExtResource( 5 )
|
|
|
|
step = 1.0
|
|
|
|
percent_visible = false
|
|
|
|
|
2019-06-05 01:45:41 +02:00
|
|
|
[node name="Button" type="Button" parent="Panel"]
|
2018-09-12 02:59:22 +02:00
|
|
|
margin_left = 531.0
|
|
|
|
margin_top = 258.0
|
|
|
|
margin_right = 664.0
|
|
|
|
margin_bottom = 377.0
|
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 4
|
|
|
|
size_flags_stretch_ratio = 0.0
|
|
|
|
text = "Add"
|
|
|
|
[connection signal="button_down" from="Panel/Button" to="Panel/VBoxContainer" method="_on_Button_button_down"]
|
|
|
|
[connection signal="button_up" from="Panel/Button" to="Panel/VBoxContainer" method="_on_Button_button_up"]
|