2023-09-25 08:10:38 +00:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://qk2gw74anwlq"]
|
2023-09-23 16:24:55 +00:00
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bv6vh33cnfaw4" path="res://icon.svg" id="1_axfei"]
|
|
|
|
[ext_resource type="Script" path="res://main.gd" id="1_obpq7"]
|
|
|
|
[ext_resource type="Script" path="res://Button.gd" id="3_aenvv"]
|
|
|
|
[ext_resource type="Script" path="res://Button2.gd" id="4_u2f14"]
|
2023-09-25 08:10:38 +00:00
|
|
|
[ext_resource type="Script" path="res://ProgressButton.gd" id="5_slq0p"]
|
|
|
|
[ext_resource type="Script" path="res://ProgressBar.gd" id="6_cx658"]
|
2023-09-23 16:24:55 +00:00
|
|
|
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_b77hh"]
|
|
|
|
font_size = 24
|
|
|
|
|
2023-09-25 08:10:38 +00:00
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xyjyy"]
|
|
|
|
corner_radius_top_left = 5
|
|
|
|
corner_radius_top_right = 5
|
|
|
|
corner_radius_bottom_right = 5
|
|
|
|
corner_radius_bottom_left = 5
|
|
|
|
|
2023-09-23 16:24:55 +00:00
|
|
|
[node name="Control" type="Control"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
script = ExtResource("1_obpq7")
|
|
|
|
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
color = Color(0.20871, 0.20871, 0.20871, 1)
|
|
|
|
|
|
|
|
[node name="Icon" type="Sprite2D" parent="."]
|
|
|
|
position = Vector2(76, 66)
|
|
|
|
scale = Vector2(0.25, 0.25)
|
|
|
|
texture = ExtResource("1_axfei")
|
|
|
|
|
|
|
|
[node name="TitleText" type="Label" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
offset_left = -208.5
|
|
|
|
offset_top = 50.0
|
|
|
|
offset_right = 208.5
|
|
|
|
offset_bottom = 87.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
text = "Welcome to RetroDECK configurator"
|
|
|
|
label_settings = SubResource("LabelSettings_b77hh")
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="VBoxContainerButtons" type="VBoxContainer" parent="."]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2023-09-25 08:10:38 +00:00
|
|
|
offset_left = -74.0
|
|
|
|
offset_top = -66.0
|
|
|
|
offset_right = 273.0
|
|
|
|
offset_bottom = 66.0
|
2023-09-23 16:24:55 +00:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="VBoxContainerButtons"]
|
2023-09-25 08:10:38 +00:00
|
|
|
custom_minimum_size = Vector2(150, 0)
|
2023-09-23 16:24:55 +00:00
|
|
|
layout_mode = 2
|
2023-09-25 08:10:38 +00:00
|
|
|
size_flags_horizontal = 0
|
|
|
|
focus_neighbor_top = NodePath("../HBoxContainerProgress/ProgressButton")
|
2023-09-23 16:24:55 +00:00
|
|
|
focus_neighbor_bottom = NodePath("../Button2")
|
|
|
|
text = "Hardcoded script"
|
|
|
|
script = ExtResource("3_aenvv")
|
|
|
|
|
|
|
|
[node name="Button2" type="Button" parent="VBoxContainerButtons"]
|
2023-09-25 08:10:38 +00:00
|
|
|
custom_minimum_size = Vector2(150, 0)
|
2023-09-23 16:24:55 +00:00
|
|
|
layout_mode = 2
|
2023-09-25 08:10:38 +00:00
|
|
|
size_flags_horizontal = 0
|
2023-09-23 16:24:55 +00:00
|
|
|
focus_neighbor_top = NodePath("../Button")
|
2023-09-25 08:10:38 +00:00
|
|
|
focus_neighbor_bottom = NodePath("../HBoxContainerProgress/ProgressButton")
|
2023-09-23 16:24:55 +00:00
|
|
|
text = "External script"
|
|
|
|
script = ExtResource("4_u2f14")
|
2023-09-23 17:26:41 +00:00
|
|
|
|
2023-09-25 08:10:38 +00:00
|
|
|
[node name="HBoxContainerProgress" type="HBoxContainer" parent="VBoxContainerButtons"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="ProgressButton" type="Button" parent="VBoxContainerButtons/HBoxContainerProgress"]
|
|
|
|
custom_minimum_size = Vector2(150, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_top = NodePath("../../Button2")
|
|
|
|
focus_neighbor_bottom = NodePath("../../Button")
|
|
|
|
text = "Start progress"
|
|
|
|
script = ExtResource("5_slq0p")
|
|
|
|
|
|
|
|
[node name="CheckButton" type="CheckButton" parent="VBoxContainerButtons/HBoxContainerProgress"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Make progress red"
|
|
|
|
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="VBoxContainerButtons"]
|
|
|
|
custom_minimum_size = Vector2(150, 0)
|
2023-09-23 17:26:41 +00:00
|
|
|
layout_mode = 2
|
2023-09-25 08:10:38 +00:00
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 1
|
|
|
|
size_flags_stretch_ratio = 8.13
|
|
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_xyjyy")
|
|
|
|
step = 1.0
|
|
|
|
value = 25.0
|
|
|
|
script = ExtResource("6_cx658")
|
|
|
|
|
|
|
|
[connection signal="toggled" from="VBoxContainerButtons/HBoxContainerProgress/CheckButton" to="VBoxContainerButtons/ProgressBar" method="_on_check_button_toggled"]
|