2019-10-26 13:51:15 +02:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2018-10-02 07:46:20 +02:00
|
|
|
|
2020-01-25 15:20:08 +01:00
|
|
|
[ext_resource path="res://material_maker/widgets/node_editor/node_editor.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://material_maker/widgets/node_editor/node_editor_item_list.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://material_maker/icons/icons.svg" type="Texture" id=3]
|
|
|
|
|
|
|
|
|
2018-10-02 07:46:20 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
|
|
flags = 4
|
2019-10-26 13:51:15 +02:00
|
|
|
atlas = ExtResource( 3 )
|
2019-10-06 14:07:49 +02:00
|
|
|
region = Rect2( 48, 0, 16, 16 )
|
2018-10-02 07:46:20 +02:00
|
|
|
|
2019-10-07 20:41:57 +02:00
|
|
|
[sub_resource type="DynamicFontData" id=2]
|
2020-01-25 15:54:20 +01:00
|
|
|
font_path = "res://material_maker/fonts/hack.ttf"
|
2019-10-07 20:41:57 +02:00
|
|
|
|
|
|
|
[sub_resource type="DynamicFont" id=3]
|
|
|
|
size = 12
|
|
|
|
font_data = SubResource( 2 )
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="NodeEditor" type="WindowDialog"]
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 896.0
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_bottom = 398.0
|
2018-10-09 07:24:44 +02:00
|
|
|
popup_exclusive = true
|
2018-10-02 07:46:20 +02:00
|
|
|
window_title = "Node Editor"
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Sizer" type="VBoxContainer" parent="."]
|
2018-10-02 07:46:20 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2018-10-09 07:24:44 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Tabs" type="TabContainer" parent="Sizer"]
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 896.0
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_bottom = 374.0
|
2018-10-09 07:24:44 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2018-10-02 07:46:20 +02:00
|
|
|
tab_align = 0
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="General" type="VBoxContainer" parent="Sizer/Tabs"]
|
2018-10-09 07:24:44 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 32.0
|
|
|
|
margin_right = -4.0
|
|
|
|
margin_bottom = -4.0
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Name" type="HBoxContainer" parent="Sizer/Tabs/General"]
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="LabelName" type="Label" parent="Sizer/Tabs/General/Name"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 42.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "Name:"
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Name" type="LineEdit" parent="Sizer/Tabs/General/Name"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_left = 46.0
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="LabelParameters" type="Label" parent="Sizer/Tabs/General"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_top = 28.0
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 42.0
|
|
|
|
text = "Parameters:"
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Parameters" type="ScrollContainer" parent="Sizer/Tabs/General"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_top = 46.0
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 181.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
scroll_horizontal_enabled = false
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Sizer" type="VBoxContainer" parent="Sizer/Tabs/General/Parameters"]
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 22.0
|
|
|
|
size_flags_horizontal = 3
|
2019-10-26 13:51:15 +02:00
|
|
|
script = ExtResource( 2 )
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="AddParameter" type="Button" parent="Sizer/Tabs/General/Parameters/Sizer"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_right = 28.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
size_flags_horizontal = 0
|
2019-10-06 14:07:49 +02:00
|
|
|
icon = SubResource( 1 )
|
2018-10-09 07:24:44 +02:00
|
|
|
flat = true
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="LabelInputs" type="Label" parent="Sizer/Tabs/General"]
|
2018-11-11 19:18:26 +01:00
|
|
|
margin_top = 185.0
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-11-11 19:18:26 +01:00
|
|
|
margin_bottom = 199.0
|
2018-10-09 07:24:44 +02:00
|
|
|
text = "Inputs:"
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Inputs" type="ScrollContainer" parent="Sizer/Tabs/General"]
|
2018-11-11 19:18:26 +01:00
|
|
|
margin_top = 203.0
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-11-11 19:18:26 +01:00
|
|
|
margin_bottom = 338.0
|
2018-10-09 07:24:44 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
scroll_horizontal_enabled = false
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Sizer" type="VBoxContainer" parent="Sizer/Tabs/General/Inputs"]
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 888.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 22.0
|
|
|
|
size_flags_horizontal = 3
|
2019-10-26 13:51:15 +02:00
|
|
|
script = ExtResource( 2 )
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="AddInput" type="Button" parent="Sizer/Tabs/General/Inputs/Sizer"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_right = 28.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
size_flags_horizontal = 0
|
2019-10-06 14:07:49 +02:00
|
|
|
icon = SubResource( 1 )
|
2018-10-09 07:24:44 +02:00
|
|
|
flat = true
|
2018-11-11 19:18:26 +01:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Outputs" type="VBoxContainer" parent="Sizer/Tabs"]
|
2018-11-11 19:18:26 +01:00
|
|
|
visible = false
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 32.0
|
|
|
|
margin_right = -4.0
|
|
|
|
margin_bottom = -4.0
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="LabelOutputs" type="Label" parent="Sizer/Tabs/Outputs"]
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_right = 825.0
|
2018-11-11 19:18:26 +01:00
|
|
|
margin_bottom = 14.0
|
2018-10-09 07:24:44 +02:00
|
|
|
text = "Outputs:"
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Outputs" type="ScrollContainer" parent="Sizer/Tabs/Outputs"]
|
2018-11-11 19:18:26 +01:00
|
|
|
margin_top = 18.0
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_right = 825.0
|
|
|
|
margin_bottom = 338.0
|
2018-10-09 07:24:44 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
scroll_horizontal_enabled = false
|
2018-10-02 07:46:20 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Sizer" type="VBoxContainer" parent="Sizer/Tabs/Outputs/Outputs"]
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_right = 825.0
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_bottom = 22.0
|
|
|
|
size_flags_horizontal = 3
|
2019-10-26 13:51:15 +02:00
|
|
|
script = ExtResource( 2 )
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="AddOutput" type="Button" parent="Sizer/Tabs/Outputs/Outputs/Sizer"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_right = 28.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
size_flags_horizontal = 0
|
2019-10-06 14:07:49 +02:00
|
|
|
icon = SubResource( 1 )
|
2018-10-09 07:24:44 +02:00
|
|
|
flat = true
|
|
|
|
|
2019-10-10 07:42:38 +02:00
|
|
|
[node name="Main Code" type="TextEdit" parent="Sizer/Tabs"]
|
2018-10-09 07:24:44 +02:00
|
|
|
visible = false
|
2018-10-02 07:46:20 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 32.0
|
|
|
|
margin_right = -4.0
|
|
|
|
margin_bottom = -4.0
|
|
|
|
mouse_default_cursor_shape = 0
|
2019-10-10 22:43:34 +02:00
|
|
|
custom_fonts/font = SubResource( 3 )
|
2019-10-07 20:41:57 +02:00
|
|
|
syntax_highlighting = true
|
|
|
|
show_line_numbers = true
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-10 07:42:38 +02:00
|
|
|
[node name="Instance Functions" type="TextEdit" parent="Sizer/Tabs"]
|
2018-10-09 07:24:44 +02:00
|
|
|
visible = false
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 32.0
|
|
|
|
margin_right = -4.0
|
|
|
|
margin_bottom = -4.0
|
|
|
|
mouse_default_cursor_shape = 0
|
2019-10-10 22:43:34 +02:00
|
|
|
custom_fonts/font = SubResource( 3 )
|
2019-10-07 20:41:57 +02:00
|
|
|
syntax_highlighting = true
|
|
|
|
show_line_numbers = true
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-10 07:42:38 +02:00
|
|
|
[node name="Global Functions" type="TextEdit" parent="Sizer/Tabs"]
|
|
|
|
visible = false
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 4.0
|
|
|
|
margin_top = 32.0
|
|
|
|
margin_right = -4.0
|
|
|
|
margin_bottom = -4.0
|
|
|
|
mouse_default_cursor_shape = 0
|
|
|
|
custom_fonts/font = SubResource( 3 )
|
|
|
|
custom_colors/brace_mismatch_color = Color( 1, 0, 0, 1 )
|
|
|
|
syntax_highlighting = true
|
|
|
|
show_line_numbers = true
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Sizer"]
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_left = 339.0
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_top = 378.0
|
2019-10-26 13:51:15 +02:00
|
|
|
margin_right = 557.0
|
2018-10-13 17:31:37 +02:00
|
|
|
margin_bottom = 398.0
|
2018-10-09 07:24:44 +02:00
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Apply" type="Button" parent="Sizer/HBoxContainer"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_right = 70.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 70, 0 )
|
2018-11-20 07:46:51 +01:00
|
|
|
text = "Apply"
|
2018-10-09 07:24:44 +02:00
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="OK" type="Button" parent="Sizer/HBoxContainer"]
|
2018-10-09 07:24:44 +02:00
|
|
|
margin_left = 74.0
|
|
|
|
margin_right = 144.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 70, 0 )
|
2018-11-20 07:46:51 +01:00
|
|
|
text = "OK"
|
|
|
|
|
2019-10-06 14:07:49 +02:00
|
|
|
[node name="Cancel" type="Button" parent="Sizer/HBoxContainer"]
|
2018-11-20 07:46:51 +01:00
|
|
|
margin_left = 148.0
|
|
|
|
margin_right = 218.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 70, 0 )
|
2018-10-09 07:24:44 +02:00
|
|
|
text = "Cancel"
|
|
|
|
[connection signal="pressed" from="Sizer/Tabs/General/Parameters/Sizer/AddParameter" to="." method="_on_AddParameter_pressed"]
|
|
|
|
[connection signal="pressed" from="Sizer/Tabs/General/Inputs/Sizer/AddInput" to="." method="_on_AddInput_pressed"]
|
2018-11-11 19:18:26 +01:00
|
|
|
[connection signal="pressed" from="Sizer/Tabs/Outputs/Outputs/Sizer/AddOutput" to="." method="_on_AddOutput_pressed"]
|
2018-11-20 07:46:51 +01:00
|
|
|
[connection signal="pressed" from="Sizer/HBoxContainer/Apply" to="." method="_on_Apply_pressed"]
|
2018-10-09 07:24:44 +02:00
|
|
|
[connection signal="pressed" from="Sizer/HBoxContainer/OK" to="." method="_on_OK_pressed"]
|
|
|
|
[connection signal="pressed" from="Sizer/HBoxContainer/Cancel" to="." method="_on_Cancel_pressed"]
|