[gd_scene load_steps=9 format=3 uid="uid://od3wj1xaap7h"]
[ext_resource type="Script" path="res://tests/test_editor.gd" id="1_0qew2"]
[ext_resource type="ArrayMesh" uid="uid://ds6dlfsvec33m" path="res://assets/models/cylinder.obj" id="1_5n8gx"]
[ext_resource type="Script" path="res://tests/painted_model_container.gd" id="2_jqssv"]
[ext_resource type="Script" path="res://addons/navigation_camera/navigation_camera.gd" id="4_aiyx6"]
[ext_resource type="Script" path="res://tests/result_rect.gd" id="5_eqyhx"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_o2hob"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
[sub_resource type="Sky" id="Sky_732m8"]
sky_material = SubResource("ProceduralSkyMaterial_o2hob")
[sub_resource type="Environment" id="Environment_owcxp"]
background_mode = 2
sky = SubResource("Sky_732m8")
tonemap_mode = 2
glow_enabled = true
[node name="TestEditor" 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_0qew2")
[node name="ColorRect" 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.219608, 0.235294, 0.262745, 1)
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 19.0
offset_top = 15.0
offset_right = -22.0
offset_bottom = -22.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 21
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer2"]
layout_mode = 2
[node name="TestsOptionButton" type="OptionButton" parent="VBoxContainer2/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
item_count = 1
popup/item_0/text = ""
popup/item_0/id = 0
[node name="NameEdit" type="LineEdit" parent="VBoxContainer2/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
placeholder_text = "Test Name"
[node name="NewButton" type="Button" parent="VBoxContainer2/HBoxContainer"]
layout_mode = 2
text = "New
"
[node name="ChannelCountSpinBox" type="SpinBox" parent="VBoxContainer2/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
min_value = 1.0
max_value = 4.0
value = 1.0
suffix = "channel(s)"
[node name="ModelOptionButton" type="OptionButton" parent="VBoxContainer2/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(160, 0)
layout_mode = 2
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer2"]
layout_mode = 2
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer2/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
[node name="CenterContainer" type="CenterContainer" parent="VBoxContainer2/HBoxContainer2/VBoxContainer"]
layout_mode = 2
[node name="PaintedModelContainer" type="SubViewportContainer" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("2_jqssv")
[node name="SubViewport" type="SubViewport" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer/PaintedModelContainer"]
handle_input_locally = false
size = Vector2i(400, 400)
render_target_update_mode = 4
[node name="MeshInstance" type="MeshInstance3D" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer/PaintedModelContainer/SubViewport"]
unique_name_in_owner = true
mesh = ExtResource("1_5n8gx")
[node name="WorldEnvironment" type="WorldEnvironment" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer/PaintedModelContainer/SubViewport"]
environment = SubResource("Environment_owcxp")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer/PaintedModelContainer/SubViewport"]
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
shadow_enabled = true
[node name="NavigationCamera" type="Camera3D" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer/PaintedModelContainer/SubViewport"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -5)
script = ExtResource("4_aiyx6")
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer2/HBoxContainer2/VBoxContainer"]
layout_mode = 2
alignment = 1
[node name="PaintColorPickerButton" type="ColorPickerButton" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 0)
layout_mode = 2
[node name="Button3" type="Button" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "Paint"
[node name="Button" type="Button" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "Undo"
[node name="Button2" type="Button" parent="VBoxContainer2/HBoxContainer2/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "Redo"
[node name="VBoxContainer3" type="VBoxContainer" parent="VBoxContainer2/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label2" type="Label" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3"]
layout_mode = 2
text = "Checks"
horizontal_alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3"]
layout_mode = 2
size_flags_vertical = 3
[node name="ResultRect" type="TextureRect" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
expand_mode = 1
stretch_mode = 5
script = ExtResource("5_eqyhx")
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3/VBoxContainer"]
layout_mode = 2
alignment = 2
[node name="ResultRectColorPickerButton" type="ColorPickerButton" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(60, 0)
layout_mode = 2
[node name="Button" type="Button" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "Clear"
[node name="Label" type="Label" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3"]
layout_mode = 2
text = "Steps"
horizontal_alignment = 1
[node name="Tree" type="Tree" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3"]
layout_mode = 2
alignment = 2
[node name="Button" type="Button" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3/HBoxContainer"]
layout_mode = 2
text = "Clear"
[node name="Button2" type="Button" parent="VBoxContainer2/HBoxContainer2/VBoxContainer3/HBoxContainer"]
layout_mode = 2
text = "Delete"
[node name="Control" type="Control" parent="VBoxContainer2"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
[node name="SaveButton" type="Button" parent="VBoxContainer2/Control"]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -108.0
offset_top = -23.0
offset_right = -9.0
offset_bottom = 28.0
grow_horizontal = 0
grow_vertical = 2
text = "Save"
[connection signal="item_selected" from="VBoxContainer2/HBoxContainer/TestsOptionButton" to="." method="_on_tests_option_button_item_selected"]
[connection signal="text_changed" from="VBoxContainer2/HBoxContainer/NameEdit" to="." method="_on_name_edit_text_changed"]
[connection signal="pressed" from="VBoxContainer2/HBoxContainer/NewButton" to="." method="_on_new_button_pressed"]
[connection signal="item_selected" from="VBoxContainer2/HBoxContainer/ModelOptionButton" to="." method="_on_model_option_button_item_selected"]
[connection signal="stroke_added" from="VBoxContainer2/HBoxContainer2/VBoxContainer/CenterContainer/PaintedModelContainer" to="." method="_on_painted_model_container_stroke_added"]
[connection signal="pressed" from="VBoxContainer2/Control/SaveButton" to="." method="_on_save_button_pressed"]