diff --git a/game/addons/mat_maker_gd/editor/MatMakerGDEditor.tscn b/game/addons/mat_maker_gd/editor/MatMakerGDEditor.tscn index 273eafcc..bb576bbc 100644 --- a/game/addons/mat_maker_gd/editor/MatMakerGDEditor.tscn +++ b/game/addons/mat_maker_gd/editor/MatMakerGDEditor.tscn @@ -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"] diff --git a/game/addons/mat_maker_gd/new_resource.tres b/game/addons/mat_maker_gd/new_resource.tres index 9464da15..dbd7161e 100644 --- a/game/addons/mat_maker_gd/new_resource.tres +++ b/game/addons/mat_maker_gd/new_resource.tres @@ -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 ) diff --git a/game/addons/mat_maker_gd/nodes/other/output.gd b/game/addons/mat_maker_gd/nodes/other/output.gd new file mode 100644 index 00000000..41fd323c --- /dev/null +++ b/game/addons/mat_maker_gd/nodes/other/output.gd @@ -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)