mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://addons/material_maker/graph_edit.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/material_maker/icons/icons.svg" type="Texture" id=2]
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
flags = 4
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 15.4016, 47.1451, 16.7512, 17.8319 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
flags = 4
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 0, 48, 16, 16 )
|
|
|
|
[node name="GraphEdit" type="GraphEdit"]
|
|
self_modulate = Color( 1, 1, 1, 0 )
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
right_disconnects = true
|
|
use_snap = false
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.2
|
|
one_shot = true
|
|
|
|
[node name="GraphUI" type="HBoxContainer" parent="."]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
margin_left = -592.0
|
|
margin_right = -16.0
|
|
margin_bottom = 40.0
|
|
alignment = 2
|
|
|
|
[node name="SubGraphUI" type="HBoxContainer" parent="GraphUI"]
|
|
margin_left = 362.0
|
|
margin_right = 544.0
|
|
margin_bottom = 40.0
|
|
size_flags_horizontal = 9
|
|
|
|
[node name="Label" type="LineEdit" parent="GraphUI/SubGraphUI"]
|
|
margin_right = 150.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 150, 0 )
|
|
size_flags_horizontal = 9
|
|
|
|
[node name="ButtonUp" type="Button" parent="GraphUI/SubGraphUI"]
|
|
margin_left = 154.0
|
|
margin_right = 182.0
|
|
margin_bottom = 40.0
|
|
size_flags_horizontal = 9
|
|
icon = SubResource( 1 )
|
|
|
|
[node name="ButtonShowTree" type="Button" parent="GraphUI"]
|
|
margin_left = 548.0
|
|
margin_right = 576.0
|
|
margin_bottom = 40.0
|
|
icon = SubResource( 2 )
|
|
[connection signal="connection_request" from="." to="." method="connect_node"]
|
|
[connection signal="disconnection_request" from="." to="." method="disconnect_node"]
|
|
[connection signal="timeout" from="Timer" to="." method="do_send_changed_signal"]
|
|
[connection signal="text_changed" from="GraphUI/SubGraphUI/Label" to="." method="_on_Label_text_changed"]
|
|
[connection signal="pressed" from="GraphUI/SubGraphUI/ButtonUp" to="." method="on_ButtonUp_pressed"]
|
|
[connection signal="pressed" from="GraphUI/ButtonShowTree" to="." method="_on_ButtonShowTree_pressed"]
|