2019-11-04 07:58:17 +01:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2018-09-03 21:35:44 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/graph_edit.gd" type="Script" id=1]
|
2019-10-20 11:33:33 +02:00
|
|
|
[ext_resource path="res://addons/material_maker/icons/icons.svg" type="Texture" id=2]
|
|
|
|
|
2019-11-01 13:04:38 +01:00
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
|
|
|
bg_color = Color( 0.6, 0.6, 0.6, 0 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
2019-10-20 11:33:33 +02:00
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 2 )
|
2019-11-04 07:58:17 +01:00
|
|
|
region = Rect2( 64, 32, 16, 16 )
|
2019-10-20 11:33:33 +02:00
|
|
|
|
2019-11-01 13:04:38 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
2019-10-20 11:33:33 +02:00
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 2 )
|
2019-11-04 07:58:17 +01:00
|
|
|
region = Rect2( 15.4016, 47.1451, 16.7512, 17.8319 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
|
|
flags = 4
|
|
|
|
atlas = ExtResource( 2 )
|
2019-10-20 11:33:33 +02:00
|
|
|
region = Rect2( 0, 48, 16, 16 )
|
2018-08-04 08:05:34 +02:00
|
|
|
|
2019-08-12 15:58:42 +02:00
|
|
|
[node name="GraphEdit" type="GraphEdit"]
|
2018-08-05 18:46:23 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2019-11-01 13:04:38 +01:00
|
|
|
custom_styles/bg = SubResource( 1 )
|
2018-08-04 08:05:34 +02:00
|
|
|
right_disconnects = true
|
|
|
|
use_snap = false
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
2019-08-12 15:58:42 +02:00
|
|
|
[node name="Timer" type="Timer" parent="."]
|
2018-08-05 18:46:23 +02:00
|
|
|
wait_time = 0.2
|
2018-08-04 08:05:34 +02:00
|
|
|
one_shot = true
|
2019-09-19 07:56:32 +02:00
|
|
|
|
2019-10-20 11:33:33 +02:00
|
|
|
[node name="GraphUI" type="HBoxContainer" parent="."]
|
2019-09-19 07:56:32 +02:00
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_right = 1.0
|
2019-10-20 11:33:33 +02:00
|
|
|
margin_left = -592.0
|
|
|
|
margin_right = -16.0
|
2019-10-21 23:58:14 +02:00
|
|
|
margin_bottom = 24.0
|
2019-10-20 11:33:33 +02:00
|
|
|
alignment = 2
|
2019-10-10 22:43:34 +02:00
|
|
|
|
2019-10-20 11:33:33 +02:00
|
|
|
[node name="SubGraphUI" type="HBoxContainer" parent="GraphUI"]
|
2019-11-04 07:58:17 +01:00
|
|
|
margin_left = 330.0
|
2019-10-20 11:33:33 +02:00
|
|
|
margin_right = 544.0
|
2019-10-21 23:58:14 +02:00
|
|
|
margin_bottom = 24.0
|
2019-10-20 11:33:33 +02:00
|
|
|
size_flags_horizontal = 9
|
|
|
|
|
|
|
|
[node name="Label" type="LineEdit" parent="GraphUI/SubGraphUI"]
|
2019-10-10 22:43:34 +02:00
|
|
|
margin_right = 150.0
|
2019-10-21 23:58:14 +02:00
|
|
|
margin_bottom = 24.0
|
2019-10-10 22:43:34 +02:00
|
|
|
rect_min_size = Vector2( 150, 0 )
|
2019-10-20 11:33:33 +02:00
|
|
|
size_flags_horizontal = 9
|
2019-10-10 22:43:34 +02:00
|
|
|
|
2019-11-04 07:58:17 +01:00
|
|
|
[node name="ButtonTransmitsSeed" type="Button" parent="GraphUI/SubGraphUI"]
|
2019-10-10 22:43:34 +02:00
|
|
|
margin_left = 154.0
|
2019-10-20 11:33:33 +02:00
|
|
|
margin_right = 182.0
|
2019-10-21 23:58:14 +02:00
|
|
|
margin_bottom = 24.0
|
2019-11-04 07:58:17 +01:00
|
|
|
hint_tooltip = "Affect children seeds"
|
2019-10-20 11:33:33 +02:00
|
|
|
size_flags_horizontal = 9
|
2019-11-04 07:58:17 +01:00
|
|
|
toggle_mode = true
|
2019-11-01 13:04:38 +01:00
|
|
|
icon = SubResource( 2 )
|
2019-10-20 11:33:33 +02:00
|
|
|
|
2019-11-04 07:58:17 +01:00
|
|
|
[node name="ButtonUp" type="Button" parent="GraphUI/SubGraphUI"]
|
|
|
|
margin_left = 186.0
|
|
|
|
margin_right = 214.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
hint_tooltip = "Back to parent"
|
|
|
|
size_flags_horizontal = 9
|
|
|
|
icon = SubResource( 3 )
|
|
|
|
|
2019-10-20 11:33:33 +02:00
|
|
|
[node name="ButtonShowTree" type="Button" parent="GraphUI"]
|
|
|
|
margin_left = 548.0
|
|
|
|
margin_right = 576.0
|
2019-10-21 23:58:14 +02:00
|
|
|
margin_bottom = 24.0
|
|
|
|
hint_tooltip = "Show hierarchy"
|
2019-11-04 07:58:17 +01:00
|
|
|
icon = SubResource( 4 )
|
2018-08-12 19:25:18 +02:00
|
|
|
[connection signal="connection_request" from="." to="." method="connect_node"]
|
|
|
|
[connection signal="disconnection_request" from="." to="." method="disconnect_node"]
|
2018-08-04 08:05:34 +02:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="do_send_changed_signal"]
|
2019-10-20 11:33:33 +02:00
|
|
|
[connection signal="text_changed" from="GraphUI/SubGraphUI/Label" to="." method="_on_Label_text_changed"]
|
2019-11-04 07:58:17 +01:00
|
|
|
[connection signal="toggled" from="GraphUI/SubGraphUI/ButtonTransmitsSeed" to="." method="_on_ButtonTransmitsSeed_toggled"]
|
2019-10-20 11:33:33 +02:00
|
|
|
[connection signal="pressed" from="GraphUI/SubGraphUI/ButtonUp" to="." method="on_ButtonUp_pressed"]
|
|
|
|
[connection signal="pressed" from="GraphUI/ButtonShowTree" to="." method="_on_ButtonShowTree_pressed"]
|