[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) " [node name="Control" type="Control"] margin_right = 1024.0 margin_bottom = 600.0 theme = ExtResource( 1 ) [node name="Panel" type="Panel" parent="."] margin_left = 128.0 margin_top = 64.0 margin_right = 896.0 margin_bottom = 536.0 [node name="Title" parent="Panel" instance=ExtResource( 2 )] margin_right = 767.0 [node name="VBoxContainer" type="VBoxContainer" parent="Panel"] 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 ) [node name="Speed" type="Label" parent="Panel/VBoxContainer"] margin_right = 396.0 margin_bottom = 40.0 custom_fonts/font = ExtResource( 3 ) text = "Speed" [node name="ProgressBarRed" type="ProgressBar" parent="Panel/VBoxContainer"] margin_top = 45.0 margin_right = 396.0 margin_bottom = 85.0 custom_styles/fg = ExtResource( 4 ) step = 1.0 percent_visible = false [node name="BlankSpace" type="ReferenceRect" parent="Panel/VBoxContainer"] margin_top = 90.0 margin_right = 396.0 margin_bottom = 154.0 rect_min_size = Vector2( 0, 16 ) size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Acceleration" type="Label" parent="Panel/VBoxContainer"] margin_top = 159.0 margin_right = 396.0 margin_bottom = 199.0 custom_fonts/font = ExtResource( 3 ) text = "Acceleration" [node name="ProgressBarBlue" type="ProgressBar" parent="Panel/VBoxContainer"] margin_top = 204.0 margin_right = 396.0 margin_bottom = 244.0 custom_styles/fg = ExtResource( 5 ) step = 1.0 percent_visible = false [node name="Button" type="Button" parent="Panel"] 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"]