Added a new output node.

This commit is contained in:
Relintai 2021-10-07 15:47:09 +02:00
parent e31aedbb1b
commit 6f5c7395ba
3 changed files with 18 additions and 4 deletions

View File

@ -48,7 +48,7 @@ margin_bottom = 600.0
mouse_filter = 2
[node name="AddPopup" parent="Popups" instance=ExtResource( 2 )]
type_folders = PoolStringArray( "res://addons/mat_maker_gd/nodes/filter", "res://addons/mat_maker_gd/nodes/noise", "res://addons/mat_maker_gd/nodes/pattern", "res://addons/mat_maker_gd/nodes/sdf2d", "res://addons/mat_maker_gd/nodes/sdf3d", "res://addons/mat_maker_gd/nodes/simple" )
type_folders = PoolStringArray( "res://addons/mat_maker_gd/nodes/filter", "res://addons/mat_maker_gd/nodes/noise", "res://addons/mat_maker_gd/nodes/pattern", "res://addons/mat_maker_gd/nodes/sdf2d", "res://addons/mat_maker_gd/nodes/sdf3d", "res://addons/mat_maker_gd/nodes/simple", "res://addons/mat_maker_gd/nodes/other" )
[connection signal="pressed" from="VBoxContainer/PanelContainer/HBoxContainer/AddButton" to="." method="_on_AddButton_pressed"]
[connection signal="ok_pressed" from="Popups/AddPopup" to="." method="_on_AddPopup_ok_pressed"]

View File

@ -24,7 +24,7 @@ refresh = false
script = ExtResource( 5 )
default_type = 1
default_int = 0
default_float = 0.2
default_float = 0.3
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
@ -33,14 +33,14 @@ default_color = Color( 0, 0, 0, 1 )
script = ExtResource( 5 )
default_type = 1
default_int = 0
default_float = 0.35
default_float = 0.4
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=5]
script = ExtResource( 4 )
graph_position = Vector2( -260, -200 )
graph_position = Vector2( -240, -340 )
shape_type = 2
sides = 6
radius = SubResource( 4 )

View File

@ -0,0 +1,14 @@
tool
extends MMNode
var image : Resource
func _init_properties():
image = MMNodeUniversalProperty.new()
image.default_type = MMNodeUniversalProperty.MMNodeUniversalPropertyDefaultType.DEFAULT_TYPE_IMAGE
image.input_slot_type = MMNodeUniversalProperty.SlotTypes.SLOT_TYPE_UNIVERSAL
image.slot_name = "radius"
image.value_step = 0.05
func _register_methods(mm_graph_node) -> void:
mm_graph_node.add_slot_texture_universal(image)