2021-12-28 15:05:43 +01:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2021-03-02 13:03:02 +01:00
|
|
|
|
|
|
|
[ext_resource path="res://addons/mesh_data_resource_editor/MDIEd.gd" type="Script" id=1]
|
2021-12-28 15:05:43 +01:00
|
|
|
[ext_resource path="res://addons/mesh_data_resource_editor/button_groups/vertex_position_operation_bg.tres" type="ButtonGroup" id=2]
|
2021-03-23 19:03:32 +01:00
|
|
|
[ext_resource path="res://addons/mesh_data_resource_editor/UVEditor.gd" type="Script" id=3]
|
2021-12-28 15:05:43 +01:00
|
|
|
[ext_resource path="res://addons/mesh_data_resource_editor/widgets/flex_grid_container.gd" type="Script" id=4]
|
|
|
|
[ext_resource path="res://addons/mesh_data_resource_editor/button_groups/edit_mode_button_group.tres" type="ButtonGroup" id=5]
|
2021-03-02 13:03:02 +01:00
|
|
|
|
|
|
|
[node name="MDIEd" type="PanelContainer"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2021-12-28 15:05:43 +01:00
|
|
|
uv_editor_path = NodePath("VBoxContainer/VBoxContainer/UVEditorScrollContainer/UVEditor")
|
2021-03-02 13:03:02 +01:00
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
|
|
|
margin_right = 1017.0
|
|
|
|
margin_bottom = 593.0
|
2021-03-23 19:03:32 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2021-03-02 13:03:02 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Actions" type="VBoxContainer" parent="VBoxContainer"]
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_right = 1010.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_bottom = 86.0
|
|
|
|
|
|
|
|
[node name="ActionsLabel" type="Label" parent="VBoxContainer/Actions"]
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Actions"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="Actions" type="HBoxContainer" parent="VBoxContainer/Actions"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 86.0
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Actions/Actions"]
|
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 68.0
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/Actions/Actions/VBoxContainer"]
|
|
|
|
margin_right = 12.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
hint_tooltip = "Edit Mode"
|
|
|
|
mouse_filter = 0
|
|
|
|
size_flags_vertical = 7
|
|
|
|
text = "E"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
2021-03-02 13:03:02 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Label2" type="Label" parent="VBoxContainer/Actions/Actions/VBoxContainer"]
|
|
|
|
margin_top = 24.0
|
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 44.0
|
|
|
|
hint_tooltip = "Active Axis"
|
|
|
|
mouse_filter = 0
|
|
|
|
size_flags_vertical = 7
|
|
|
|
text = "A"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="VBoxContainer/Actions/Actions/VBoxContainer"]
|
|
|
|
margin_top = 48.0
|
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 68.0
|
|
|
|
hint_tooltip = "Selection Mode"
|
|
|
|
mouse_filter = 0
|
|
|
|
size_flags_vertical = 7
|
|
|
|
text = "M"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="VBoxContainer2" type="VBoxContainer" parent="VBoxContainer/Actions/Actions"]
|
|
|
|
margin_left = 16.0
|
|
|
|
margin_right = 82.0
|
|
|
|
margin_bottom = 68.0
|
2021-03-23 15:27:37 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Actions/Actions/VBoxContainer2"]
|
|
|
|
margin_right = 66.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
|
|
|
|
[node name="Translate" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer"]
|
|
|
|
margin_right = 19.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
hint_tooltip = "Translate"
|
2021-03-23 15:27:37 +01:00
|
|
|
toggle_mode = true
|
|
|
|
pressed = true
|
|
|
|
group = ExtResource( 2 )
|
2021-03-02 13:03:02 +01:00
|
|
|
text = "T"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Rotate" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer"]
|
|
|
|
margin_left = 23.0
|
|
|
|
margin_right = 43.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
hint_tooltip = "Rotate"
|
2021-03-23 15:27:37 +01:00
|
|
|
toggle_mode = true
|
|
|
|
group = ExtResource( 2 )
|
2021-03-02 13:03:02 +01:00
|
|
|
text = "R"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Scale" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer"]
|
|
|
|
margin_left = 47.0
|
|
|
|
margin_right = 66.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
hint_tooltip = "Scale"
|
2021-03-23 15:27:37 +01:00
|
|
|
toggle_mode = true
|
|
|
|
group = ExtResource( 2 )
|
2021-03-02 13:03:02 +01:00
|
|
|
text = "S"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/Actions/Actions/VBoxContainer2"]
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_top = 24.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_right = 66.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 44.0
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="AxisX" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2"]
|
|
|
|
margin_right = 19.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-03-23 15:27:37 +01:00
|
|
|
toggle_mode = true
|
|
|
|
pressed = true
|
2021-03-02 13:03:02 +01:00
|
|
|
text = "x"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="AxisY" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2"]
|
|
|
|
margin_left = 23.0
|
|
|
|
margin_right = 42.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-03-23 15:27:37 +01:00
|
|
|
toggle_mode = true
|
|
|
|
pressed = true
|
2021-03-02 13:03:02 +01:00
|
|
|
text = "y"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="AxisZ" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer2"]
|
|
|
|
margin_left = 46.0
|
|
|
|
margin_right = 65.0
|
2021-03-02 13:03:02 +01:00
|
|
|
margin_bottom = 20.0
|
2021-03-23 15:27:37 +01:00
|
|
|
toggle_mode = true
|
|
|
|
pressed = true
|
2021-03-02 13:03:02 +01:00
|
|
|
text = "z"
|
2021-03-23 15:27:37 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer/Actions/Actions/VBoxContainer2"]
|
2021-03-23 15:27:37 +01:00
|
|
|
margin_top = 48.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_right = 66.0
|
2021-03-23 15:27:37 +01:00
|
|
|
margin_bottom = 68.0
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Vertex" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3"]
|
|
|
|
margin_right = 20.0
|
2021-03-23 15:27:37 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
hint_tooltip = "Vertex"
|
|
|
|
toggle_mode = true
|
|
|
|
pressed = true
|
|
|
|
group = ExtResource( 5 )
|
|
|
|
text = "V"
|
2021-03-23 15:27:37 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Edge" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3"]
|
|
|
|
margin_left = 24.0
|
|
|
|
margin_right = 43.0
|
2021-03-23 15:27:37 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
hint_tooltip = "Edge"
|
|
|
|
toggle_mode = true
|
|
|
|
group = ExtResource( 5 )
|
|
|
|
text = "E"
|
2021-03-23 15:27:37 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Face" type="Button" parent="VBoxContainer/Actions/Actions/VBoxContainer2/HBoxContainer3"]
|
|
|
|
margin_left = 47.0
|
|
|
|
margin_right = 66.0
|
2021-03-23 15:27:37 +01:00
|
|
|
margin_bottom = 20.0
|
2021-12-28 15:05:43 +01:00
|
|
|
hint_tooltip = "Face"
|
|
|
|
toggle_mode = true
|
|
|
|
group = ExtResource( 5 )
|
2021-03-23 15:27:37 +01:00
|
|
|
text = "F"
|
2021-03-23 19:03:32 +01:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
|
|
|
|
margin_top = 90.0
|
2021-12-28 14:22:28 +01:00
|
|
|
margin_right = 1010.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_bottom = 94.0
|
2021-09-13 18:47:56 +02:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Operations" type="VBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_top = 98.0
|
2021-09-13 18:47:56 +02:00
|
|
|
margin_right = 1010.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_bottom = 136.0
|
|
|
|
|
|
|
|
[node name="OperationsLabel" type="Label" parent="VBoxContainer/Operations"]
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Operations"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="Operations" type="Container" parent="VBoxContainer/Operations"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 38.0
|
|
|
|
script = ExtResource( 4 )
|
|
|
|
|
|
|
|
[node name="Extrude" type="Button" parent="VBoxContainer/Operations/Operations"]
|
|
|
|
margin_right = 60.0
|
2021-09-13 18:47:56 +02:00
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Extrude"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="UnwrapButton" type="Button" parent="VBoxContainer/Operations/Operations"]
|
|
|
|
margin_left = 64.0
|
|
|
|
margin_right = 146.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "UV Unwrap"
|
|
|
|
|
2021-12-29 00:00:28 +01:00
|
|
|
[node name="GenNormals" type="Button" parent="VBoxContainer/Operations/Operations"]
|
|
|
|
margin_left = 150.0
|
|
|
|
margin_right = 246.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Gen Normals"
|
|
|
|
|
|
|
|
[node name="GenTangents" type="Button" parent="VBoxContainer/Operations/Operations"]
|
|
|
|
margin_left = 250.0
|
|
|
|
margin_right = 349.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Gen Tangents"
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="HSeparator3" type="HSeparator" parent="VBoxContainer"]
|
|
|
|
margin_top = 140.0
|
2021-09-13 18:47:56 +02:00
|
|
|
margin_right = 1010.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_bottom = 144.0
|
2021-09-13 18:47:56 +02:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="Add" type="VBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_top = 148.0
|
2021-09-13 18:47:56 +02:00
|
|
|
margin_right = 1010.0
|
2021-12-28 15:05:43 +01:00
|
|
|
margin_bottom = 186.0
|
|
|
|
|
|
|
|
[node name="AddLabel" type="Label" parent="VBoxContainer/Add"]
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Add"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="Add" type="Container" parent="VBoxContainer/Add"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 38.0
|
|
|
|
script = ExtResource( 4 )
|
|
|
|
|
|
|
|
[node name="AddBox" type="Button" parent="VBoxContainer/Add/Add"]
|
|
|
|
margin_right = 36.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "Box"
|
|
|
|
|
|
|
|
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer"]
|
|
|
|
margin_top = 190.0
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 194.0
|
2021-09-13 18:47:56 +02:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_top = 198.0
|
2021-09-13 18:47:56 +02:00
|
|
|
margin_right = 1010.0
|
2021-03-23 19:03:32 +01:00
|
|
|
margin_bottom = 586.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2021-12-28 15:05:43 +01:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/VBoxContainer"]
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "UV"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="UVEditorScrollContainer" type="ScrollContainer" parent="VBoxContainer/VBoxContainer"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 1010.0
|
|
|
|
margin_bottom = 388.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2021-03-23 19:03:32 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[node name="UVEditor" type="Control" parent="VBoxContainer/VBoxContainer/UVEditorScrollContainer"]
|
2021-03-23 19:03:32 +01:00
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = 100.0
|
|
|
|
rect_min_size = Vector2( 100, 100 )
|
|
|
|
script = ExtResource( 3 )
|
2021-09-13 18:47:56 +02:00
|
|
|
|
2021-12-28 15:05:43 +01:00
|
|
|
[connection signal="pressed" from="VBoxContainer/Operations/Operations/Extrude" to="." method="_on_Extrude_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Operations/Operations/UnwrapButton" to="." method="_on_UnwrapButton_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Add/Add/AddBox" to="." method="_on_AddBox_pressed"]
|