diff --git a/scripts/__node_3d_combine/__node_3d_combine.gml b/scripts/__node_3d_combine/__node_3d_combine.gml index 60d6f743c..a86985d4e 100644 --- a/scripts/__node_3d_combine/__node_3d_combine.gml +++ b/scripts/__node_3d_combine/__node_3d_combine.gml @@ -54,11 +54,11 @@ function __Node_3D_Combine(_x, _y, _group = noone) : Node(_x, _y, _group) constr ["Objects", true], ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); output_display_list = [ 0, 2, 1 ] diff --git a/scripts/__node_3d_displace/__node_3d_displace.gml b/scripts/__node_3d_displace/__node_3d_displace.gml index 39733435c..bbf4ff8c9 100644 --- a/scripts/__node_3d_displace/__node_3d_displace.gml +++ b/scripts/__node_3d_displace/__node_3d_displace.gml @@ -51,13 +51,13 @@ function __Node_3D_Displace(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr ["Light", true], 6, 7, 8, 9, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); - outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 2, 1, 3, diff --git a/scripts/__node_3d_extrude/__node_3d_extrude.gml b/scripts/__node_3d_extrude/__node_3d_extrude.gml index f67fdf20b..48e6010e6 100644 --- a/scripts/__node_3d_extrude/__node_3d_extrude.gml +++ b/scripts/__node_3d_extrude/__node_3d_extrude.gml @@ -55,13 +55,13 @@ function __Node_3D_Extrude(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro ["Light", false], 9, 10, 11, 12, 13, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); - outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 2, 1, 3 diff --git a/scripts/__node_3d_light/__node_3d_light.gml b/scripts/__node_3d_light/__node_3d_light.gml index 6d089e723..0673aa347 100644 --- a/scripts/__node_3d_light/__node_3d_light.gml +++ b/scripts/__node_3d_light/__node_3d_light.gml @@ -13,7 +13,7 @@ function Node_3D_Light(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _group) in_light = array_length(inputs); - outputs[0] = nodeValue_Output("Light", self, VALUE_TYPE.d3Light, noone); + newOutput(0, nodeValue_Output("Light", self, VALUE_TYPE.d3Light, noone)); #macro __d3d_input_list_light ["Light", false], in_d3d + 0, in_d3d + 1, in_d3d + 2 diff --git a/scripts/__node_3d_mesh/__node_3d_mesh.gml b/scripts/__node_3d_mesh/__node_3d_mesh.gml index 2d7c4cb68..b94a25d78 100644 --- a/scripts/__node_3d_mesh/__node_3d_mesh.gml +++ b/scripts/__node_3d_mesh/__node_3d_mesh.gml @@ -4,7 +4,7 @@ function Node_3D_Mesh(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _group) c name = "3D Mesh"; in_mesh = array_length(inputs); - outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone); + newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone)); static processData = function(_output, _data, _output_index, _array_index = 0) {} } \ No newline at end of file diff --git a/scripts/__node_3d_modifier/__node_3d_modifier.gml b/scripts/__node_3d_modifier/__node_3d_modifier.gml index 89f16af92..92c8b4bca 100644 --- a/scripts/__node_3d_modifier/__node_3d_modifier.gml +++ b/scripts/__node_3d_modifier/__node_3d_modifier.gml @@ -6,7 +6,7 @@ function Node_3D_Modifier(_x, _y, _group = noone) : Node_3D(_x, _y, _group) cons in_mesh = array_length(inputs); - outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone); + newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone)); static modify_object = function(_object, _data, _matrix) { #region return _object; diff --git a/scripts/__node_3d_obj/__node_3d_obj.gml b/scripts/__node_3d_obj/__node_3d_obj.gml index 7a5d79da9..9b10f5429 100644 --- a/scripts/__node_3d_obj/__node_3d_obj.gml +++ b/scripts/__node_3d_obj/__node_3d_obj.gml @@ -66,11 +66,11 @@ function __Node_3D_Obj(_x, _y, _group = noone) : Node(_x, _y, _group) constructo input_length = array_length(inputs); input_display_len = array_length(input_display_list); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); output_display_list = [ 0, 2, 1 diff --git a/scripts/__node_3d_plane/__node_3d_plane.gml b/scripts/__node_3d_plane/__node_3d_plane.gml index 98eb8391e..164f19109 100644 --- a/scripts/__node_3d_plane/__node_3d_plane.gml +++ b/scripts/__node_3d_plane/__node_3d_plane.gml @@ -42,11 +42,11 @@ function __Node_3D_Plane(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Texture", false], 10, 11, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(2, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 1, 2 diff --git a/scripts/__node_3d_prim_cone/__node_3d_prim_cone.gml b/scripts/__node_3d_prim_cone/__node_3d_prim_cone.gml index d5e1bc72b..d0389dd1e 100644 --- a/scripts/__node_3d_prim_cone/__node_3d_prim_cone.gml +++ b/scripts/__node_3d_prim_cone/__node_3d_prim_cone.gml @@ -51,13 +51,13 @@ function __Node_3D_Cone(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Light", false], 5, 6, 7, 8, 9, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); - outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 2, 1, 3 diff --git a/scripts/__node_3d_prim_cube/__node_3d_prim_cube.gml b/scripts/__node_3d_prim_cube/__node_3d_prim_cube.gml index 07a413c6b..37deec5fa 100644 --- a/scripts/__node_3d_prim_cube/__node_3d_prim_cube.gml +++ b/scripts/__node_3d_prim_cube/__node_3d_prim_cube.gml @@ -57,13 +57,13 @@ function __Node_3D_Cube(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Light", false], 13, 14, 15, 16, 17, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function(index) { return submit_vertex(index); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); - outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 2, 1, 3 diff --git a/scripts/__node_3d_prim_cylinder/__node_3d_prim_cylinder.gml b/scripts/__node_3d_prim_cylinder/__node_3d_prim_cylinder.gml index 5285619d1..c6a72f8c9 100644 --- a/scripts/__node_3d_prim_cylinder/__node_3d_prim_cylinder.gml +++ b/scripts/__node_3d_prim_cylinder/__node_3d_prim_cylinder.gml @@ -57,13 +57,13 @@ function __Node_3D_Cylinder(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr ["Light", false], 10, 11, 12, 13, 14, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); - outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 2, 1, 3 diff --git a/scripts/__node_3d_prim_sphere/__node_3d_prim_sphere.gml b/scripts/__node_3d_prim_sphere/__node_3d_prim_sphere.gml index 30273ccf5..3b96b779f 100644 --- a/scripts/__node_3d_prim_sphere/__node_3d_prim_sphere.gml +++ b/scripts/__node_3d_prim_sphere/__node_3d_prim_sphere.gml @@ -51,13 +51,13 @@ function __Node_3D_Sphere(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Light", false], 7, 8, 9, 10, 11, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); - outputs[3] = nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, []); + newOutput(3, nodeValue_Output("3D vertex", self, VALUE_TYPE.d3vertex, [])); output_display_list = [ 0, 2, 1, 3 ] diff --git a/scripts/__node_3d_render/__node_3d_render.gml b/scripts/__node_3d_render/__node_3d_render.gml index d2279c1d0..292e968dc 100644 --- a/scripts/__node_3d_render/__node_3d_render.gml +++ b/scripts/__node_3d_render/__node_3d_render.gml @@ -48,11 +48,11 @@ // input_length = array_length(inputs); // input_display_len = array_length(input_display_list); -// outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); +// newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); -// outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); +// newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); -// outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); +// newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); // output_display_list = [ // 0, 2, 1 diff --git a/scripts/__node_3d_repeat/__node_3d_repeat.gml b/scripts/__node_3d_repeat/__node_3d_repeat.gml index 4a54ea838..ab7985935 100644 --- a/scripts/__node_3d_repeat/__node_3d_repeat.gml +++ b/scripts/__node_3d_repeat/__node_3d_repeat.gml @@ -63,11 +63,11 @@ function __Node_3D_Repeat(_x, _y, _group = noone) : Node(_x, _y, _group) constru ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D objects", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); output_display_list = [ 0, 2, 1 diff --git a/scripts/__node_3d_transform/__node_3d_transform.gml b/scripts/__node_3d_transform/__node_3d_transform.gml index 9623017a0..1fbd1dc0f 100644 --- a/scripts/__node_3d_transform/__node_3d_transform.gml +++ b/scripts/__node_3d_transform/__node_3d_transform.gml @@ -45,11 +45,11 @@ function __Node_3D_Transform(_x, _y, _group = noone) : Node_Processor(_x, _y, _g ["Light", true], 6, 7, 8, 9, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); }); + newOutput(1, nodeValue_Output("3D scene", self, VALUE_TYPE.d3object, function() { return submit_vertex(); })); - outputs[2] = nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Normal pass", self, VALUE_TYPE.surface, noone)); output_display_list = [ 0, 2, 1 diff --git a/scripts/__node_VFX_effector/__node_VFX_effector.gml b/scripts/__node_VFX_effector/__node_VFX_effector.gml index fbbb9b6b7..ba5286e93 100644 --- a/scripts/__node_VFX_effector/__node_VFX_effector.gml +++ b/scripts/__node_VFX_effector/__node_VFX_effector.gml @@ -55,7 +55,7 @@ function Node_VFX_effector(_x, _y, _group = noone) : Node(_x, _y, _group) constr ["Effect", false], 8, 4, 5, 6, 7, ]; - outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 ); + newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 )); UPDATE_PART_FORWARD diff --git a/scripts/__node_custom/__node_custom.gml b/scripts/__node_custom/__node_custom.gml index 8cf656150..432ccc0cc 100644 --- a/scripts/__node_custom/__node_custom.gml +++ b/scripts/__node_custom/__node_custom.gml @@ -62,7 +62,7 @@ function Node_Custom(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co for( var i = 0, n = array_length(info.outputs); i < n; i++ ) { var _output = info.outputs[i]; - outputs[i] = nodeValue_Output(_output.name, self, value_type_from_string(_output.type), _output.value) + newOutput(i, nodeValue_Output(_output.name, self, value_type_from_string(_output.type), _output.value)) .setVisible(_output.show_in_graph); output_index_map[? _output.name] = i; diff --git a/scripts/__node_process_template/__node_process_template.gml b/scripts/__node_process_template/__node_process_template.gml index 0ff209cba..fec7f3ec7 100644 --- a/scripts/__node_process_template/__node_process_template.gml +++ b/scripts/__node_process_template/__node_process_template.gml @@ -3,7 +3,7 @@ function Node_Process_Template(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(0, nodeValue_Surface("", self)); - outputs[0] = nodeValue_Output("", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0 ]; diff --git a/scripts/__node_shader/__node_shader.gml b/scripts/__node_shader/__node_shader.gml index 031182dc2..ef0fe8d8b 100644 --- a/scripts/__node_shader/__node_shader.gml +++ b/scripts/__node_shader/__node_shader.gml @@ -16,7 +16,7 @@ function Node_Shader(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co shader = noone; shader_data = []; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static setShader = function(_data) { #region for( var i = 0, n = array_length(shader_data); i < n; i++ ) { diff --git a/scripts/__node_template/__node_template.gml b/scripts/__node_template/__node_template.gml index ac39aaf7f..62d999798 100644 --- a/scripts/__node_template/__node_template.gml +++ b/scripts/__node_template/__node_template.gml @@ -3,7 +3,7 @@ function Node_Template(_x, _y, _group = noone) : Node(_x, _y, _group) constructo newInput(0, nodeValue_Surface("", self)); - outputs[0] = nodeValue_Output("", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0 ]; diff --git a/scripts/_node_strand_affector/_node_strand_affector.gml b/scripts/_node_strand_affector/_node_strand_affector.gml index d5f5b4050..f416c3d31 100644 --- a/scripts/_node_strand_affector/_node_strand_affector.gml +++ b/scripts/_node_strand_affector/_node_strand_affector.gml @@ -54,7 +54,7 @@ function _Node_Strand_Affector(_x, _y, _group = noone) : Node(_x, _y, _group) co newInput(5, nodeValue_Float("Falloff", self, 0.2)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone); + newOutput(0, nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone)); input_fix_len = array_length(inputs); diff --git a/scripts/nodd_mk_delay_machine/nodd_mk_delay_machine.gml b/scripts/nodd_mk_delay_machine/nodd_mk_delay_machine.gml index 73e4e8ad9..e9ec1cb3a 100644 --- a/scripts/nodd_mk_delay_machine/nodd_mk_delay_machine.gml +++ b/scripts/nodd_mk_delay_machine/nodd_mk_delay_machine.gml @@ -23,7 +23,7 @@ function Node_MK_Delay_Machine(_x, _y, _group = noone) : Node(_x, _y, _group) co newInput(8, nodeValue_Enum_Scroll("Blend Mode", self, 0, [ "Normal", "Alpha", "Additive" ])); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Delay", false], 1, 2, diff --git a/scripts/node_2d_light/node_2d_light.gml b/scripts/node_2d_light/node_2d_light.gml index 8a745db55..d2816da49 100644 --- a/scripts/node_2d_light/node_2d_light.gml +++ b/scripts/node_2d_light/node_2d_light.gml @@ -62,8 +62,8 @@ function Node_2D_light(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(15, nodeValue_Bool("Active", self, true)); active_index = 15; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); - outputs[1] = nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); + newOutput(1, nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone)); input_display_list = [ 15, 0, ["Shape", false], 1, 2, 6, 7, 8, 9, diff --git a/scripts/node_3d_camera/node_3d_camera.gml b/scripts/node_3d_camera/node_3d_camera.gml index aa672f0ac..ec3404720 100644 --- a/scripts/node_3d_camera/node_3d_camera.gml +++ b/scripts/node_3d_camera/node_3d_camera.gml @@ -72,12 +72,12 @@ function Node_3D_Camera(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _group) in_cam = array_length(inputs); - outputs[0] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone ); + newOutput(0, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone )); - outputs[1] = nodeValue_Output("Normal", self, VALUE_TYPE.surface, noone ) + newOutput(1, nodeValue_Output("Normal", self, VALUE_TYPE.surface, noone )) .setVisible(false); - outputs[2] = nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone ) + newOutput(2, nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone )) .setVisible(false); input_display_list = [ in_d3d + 4, diff --git a/scripts/node_3d_depth/node_3d_depth.gml b/scripts/node_3d_depth/node_3d_depth.gml index ab2b922c4..83b983ef5 100644 --- a/scripts/node_3d_depth/node_3d_depth.gml +++ b/scripts/node_3d_depth/node_3d_depth.gml @@ -7,7 +7,7 @@ function Node_3D_Depth(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(2, nodeValue_Vec3("Rotation", self, [0, 0, 0] )); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Texture", false], 0, 1, diff --git a/scripts/node_3d_material/node_3d_material.gml b/scripts/node_3d_material/node_3d_material.gml index 9e853a3e8..47178842a 100644 --- a/scripts/node_3d_material/node_3d_material.gml +++ b/scripts/node_3d_material/node_3d_material.gml @@ -25,7 +25,7 @@ function Node_3D_Material(_x, _y, _group = noone) : Node_3D(_x, _y, _group) cons newInput(8, nodeValue_Bool("Anti aliasing", self, false )); - outputs[0] = nodeValue_Output("Material", self, VALUE_TYPE.d3Material, noone); + newOutput(0, nodeValue_Output("Material", self, VALUE_TYPE.d3Material, noone)); input_display_list = [ 0, 8, ["Properties", false], 1, 2, 3, 4, 7, diff --git a/scripts/node_3d_mesh_stack_slice/node_3d_mesh_stack_slice.gml b/scripts/node_3d_mesh_stack_slice/node_3d_mesh_stack_slice.gml index 28730728d..a87aa2b77 100644 --- a/scripts/node_3d_mesh_stack_slice/node_3d_mesh_stack_slice.gml +++ b/scripts/node_3d_mesh_stack_slice/node_3d_mesh_stack_slice.gml @@ -12,7 +12,7 @@ function Node_3D_Mesh_Stack_Slice(_x, _y, _group = noone) : Node(_x, _y, _group) newInput(4, nodeValue_Vec3("BBOX Padding", self, [ 0, 0, 0 ])); - outputs[0] = nodeValue_Output("Outputs", self, VALUE_TYPE.surface, []) + newOutput(0, nodeValue_Output("Outputs", self, VALUE_TYPE.surface, [])) .setArrayDepth(1); mesh_data = new Inspector_Label("", f_code); diff --git a/scripts/node_3d_point_affector/node_3d_point_affector.gml b/scripts/node_3d_point_affector/node_3d_point_affector.gml index 3956c5cc3..2c3a514d6 100644 --- a/scripts/node_3d_point_affector/node_3d_point_affector.gml +++ b/scripts/node_3d_point_affector/node_3d_point_affector.gml @@ -19,7 +19,7 @@ function Node_3D_Point_Affector(_x, _y, _group = noone) : Node_3D_Object(_x, _y, newInput(in_d3d + 5, nodeValue_Enum_Scroll("Shape", self, 0, [ new scrollItem("Sphere", s_node_3d_affector_shape, 0), new scrollItem("Plane", s_node_3d_affector_shape, 1), ])); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.float, [ 0, 0, 0 ]) + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.float, [ 0, 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); input_display_list = [ diff --git a/scripts/node_3d_repeat/node_3d_repeat.gml b/scripts/node_3d_repeat/node_3d_repeat.gml index 7f48ded77..43fd10de1 100644 --- a/scripts/node_3d_repeat/node_3d_repeat.gml +++ b/scripts/node_3d_repeat/node_3d_repeat.gml @@ -33,7 +33,7 @@ function Node_3D_Repeat(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constr newInput(12, nodeValue_Bool("Use Instance", self, true )) - outputs[0] = nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone); + newOutput(0, nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone)); input_display_list = [ ["Objects", false], 0, 3, 4, 5, diff --git a/scripts/node_3d_scene/node_3d_scene.gml b/scripts/node_3d_scene/node_3d_scene.gml index 4e0b4853d..d50a3fa2b 100644 --- a/scripts/node_3d_scene/node_3d_scene.gml +++ b/scripts/node_3d_scene/node_3d_scene.gml @@ -1,7 +1,7 @@ function Node_3D_Scene(_x, _y, _group = noone) : Node_3D(_x, _y, _group) constructor { name = "3D Scene"; - outputs[0] = nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone); + newOutput(0, nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone)); object_lists = []; diff --git a/scripts/node_3d_transform/node_3d_transform.gml b/scripts/node_3d_transform/node_3d_transform.gml index afa72b95c..5f1ed9bbd 100644 --- a/scripts/node_3d_transform/node_3d_transform.gml +++ b/scripts/node_3d_transform/node_3d_transform.gml @@ -4,7 +4,7 @@ function Node_3D_Transform(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _gro newInput(in_d3d + 0, nodeValue_D3Mesh("Mesh", self, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone); + newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone)); input_display_list = [ in_d3d + 0, ["Transform", false], 0, 1, 2, diff --git a/scripts/node_3d_transform_image/node_3d_transform_image.gml b/scripts/node_3d_transform_image/node_3d_transform_image.gml index a20a57b7e..c2d79efd3 100644 --- a/scripts/node_3d_transform_image/node_3d_transform_image.gml +++ b/scripts/node_3d_transform_image/node_3d_transform_image.gml @@ -35,9 +35,9 @@ function Node_3D_Transform_Image(_x, _y, _group = noone) : Node_3D_Mesh(_x, _y, outputs[0].setVisible(false); - outputs[1] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone)); - outputs[2] = nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone); + newOutput(2, nodeValue_Output("Depth", self, VALUE_TYPE.surface, noone)); output_display_list = [ 1, 2 ] diff --git a/scripts/node_3d_transform_scene/node_3d_transform_scene.gml b/scripts/node_3d_transform_scene/node_3d_transform_scene.gml index f7ba7c03f..721597c63 100644 --- a/scripts/node_3d_transform_scene/node_3d_transform_scene.gml +++ b/scripts/node_3d_transform_scene/node_3d_transform_scene.gml @@ -19,7 +19,7 @@ function Node_3D_Transform_Scene(_x, _y, _group = noone) : Node_3D(_x, _y, _grou newInput(6, nodeValue_Enum_Scroll("Scaling type", self, 0, [ "Additive", "Multiplicative", "Override" ])); - outputs[0] = nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone); + newOutput(0, nodeValue_Output("Scene", self, VALUE_TYPE.d3Scene, noone)); input_display_list = [ 0, ["Transform", false], 1, 2, 3, diff --git a/scripts/node_3d_uv_remap/node_3d_uv_remap.gml b/scripts/node_3d_uv_remap/node_3d_uv_remap.gml index 8adfd20d1..c971977f0 100644 --- a/scripts/node_3d_uv_remap/node_3d_uv_remap.gml +++ b/scripts/node_3d_uv_remap/node_3d_uv_remap.gml @@ -11,7 +11,7 @@ function Node_3D_UV_Remap(_x, _y, _group = noone) : Node_3D_Object(_x, _y, _grou newInput(in_d3d + 2, nodeValue_Int("Bake UV", self, 0)) .setDisplay(VALUE_DISPLAY.button, { name: "Bake", onClick: function() { attributes.bakedUV = !attributes.bakedUV; triggerRender(); } }); - outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone); + newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.d3Mesh, noone)); input_display_list = [ ["Transform", false], 0, 1, 2, diff --git a/scripts/node_3dsurf/node_3dsurf.gml b/scripts/node_3dsurf/node_3dsurf.gml index 1f84e0b8e..563cd0e58 100644 --- a/scripts/node_3dsurf/node_3dsurf.gml +++ b/scripts/node_3dsurf/node_3dsurf.gml @@ -13,7 +13,7 @@ function Node_3DSurf(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(3, nodeValue_Float("Distance", self, 4 )); - outputs[0] = nodeValue_Output("3DSurf", self, VALUE_TYPE.dynaSurface, noone); + newOutput(0, nodeValue_Output("3DSurf", self, VALUE_TYPE.dynaSurface, noone)); input_display_list = [ 0, ["Camera", false], 1, 2, 3, diff --git a/scripts/node_9slice/node_9slice.gml b/scripts/node_9slice/node_9slice.gml index 1bb416259..0adc6e993 100644 --- a/scripts/node_9slice/node_9slice.gml +++ b/scripts/node_9slice/node_9slice.gml @@ -10,7 +10,7 @@ function Node_9Slice(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(3, nodeValue_Enum_Scroll("Filling modes", self, 0, [ "Scale", "Repeat" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_interpolation(); diff --git a/scripts/node_FFT/node_FFT.gml b/scripts/node_FFT/node_FFT.gml index 7c3f6be34..4c6379897 100644 --- a/scripts/node_FFT/node_FFT.gml +++ b/scripts/node_FFT/node_FFT.gml @@ -8,7 +8,7 @@ function Node_FFT(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) const newInput(1, nodeValue_Enum_Scroll("Preprocess Function", self, 0, [ "None", "Hann" ])); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, []) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, [])) .setArrayDepth(1); static processData = function(_outSurf, _data, _output_index, _array_index) { diff --git a/scripts/node_FLIP_add_rigidbody/node_FLIP_add_rigidbody.gml b/scripts/node_FLIP_add_rigidbody/node_FLIP_add_rigidbody.gml index 425d05b89..88fa3573a 100644 --- a/scripts/node_FLIP_add_rigidbody/node_FLIP_add_rigidbody.gml +++ b/scripts/node_FLIP_add_rigidbody/node_FLIP_add_rigidbody.gml @@ -16,7 +16,7 @@ function Node_FLIP_Add_Rigidbody(_x, _y, _group = noone) : Node(_x, _y, _group) ["Collider", false], 1, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); obstracle = new FLIP_Obstracle(); index = 0; diff --git a/scripts/node_FLIP_apply_force/node_FLIP_apply_force.gml b/scripts/node_FLIP_apply_force/node_FLIP_apply_force.gml index e0f3db546..132686153 100644 --- a/scripts/node_FLIP_apply_force/node_FLIP_apply_force.gml +++ b/scripts/node_FLIP_apply_force/node_FLIP_apply_force.gml @@ -42,7 +42,7 @@ function Node_FLIP_Apply_Force(_x, _y, _group = noone) : Node(_x, _y, _group) co ["Obstracle", false], 1, 5, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); obstracle = new FLIP_Obstracle(); index = 0; diff --git a/scripts/node_FLIP_apply_velocity/node_FLIP_apply_velocity.gml b/scripts/node_FLIP_apply_velocity/node_FLIP_apply_velocity.gml index 41ce17fad..70dbc861d 100644 --- a/scripts/node_FLIP_apply_velocity/node_FLIP_apply_velocity.gml +++ b/scripts/node_FLIP_apply_velocity/node_FLIP_apply_velocity.gml @@ -25,7 +25,7 @@ function Node_FLIP_Apply_Velocity(_x, _y, _group = noone) : Node(_x, _y, _group) ["Velocity", false], 4, 1, 2, 5, 3, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); static getDimension = function() { var domain = getInputData(0); diff --git a/scripts/node_FLIP_destroy/node_FLIP_destroy.gml b/scripts/node_FLIP_destroy/node_FLIP_destroy.gml index 58f4a5af8..5c53a0886 100644 --- a/scripts/node_FLIP_destroy/node_FLIP_destroy.gml +++ b/scripts/node_FLIP_destroy/node_FLIP_destroy.gml @@ -22,7 +22,7 @@ function Node_FLIP_Destroy(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(5, nodeValue_Float("Ratio", self, 1 )) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { #region var _pos = getInputData(1); diff --git a/scripts/node_FLIP_domain/node_FLIP_domain.gml b/scripts/node_FLIP_domain/node_FLIP_domain.gml index 40ac81320..b99e3755e 100644 --- a/scripts/node_FLIP_domain/node_FLIP_domain.gml +++ b/scripts/node_FLIP_domain/node_FLIP_domain.gml @@ -46,7 +46,7 @@ function Node_FLIP_Domain(_x, _y, _group = noone) : Node(_x, _y, _group) constru ["Physics", false], 7, 13, 10, 11, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone)); #region attributes array_push(attributeEditors, "FLIP Solver"); diff --git a/scripts/node_FLIP_render/node_FLIP_render.gml b/scripts/node_FLIP_render/node_FLIP_render.gml index 687c648fe..cf1101aa4 100644 --- a/scripts/node_FLIP_render/node_FLIP_render.gml +++ b/scripts/node_FLIP_render/node_FLIP_render.gml @@ -40,7 +40,7 @@ function Node_FLIP_Render(_x, _y, _group = noone) : Node(_x, _y, _group) constru ["Post Processing", false], 8, 7, 1, ]; - outputs[0] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone)); seed = irandom_range(100000, 999999); temp_surface = [ noone ]; diff --git a/scripts/node_FLIP_repel/node_FLIP_repel.gml b/scripts/node_FLIP_repel/node_FLIP_repel.gml index d712b3a74..ab33bd517 100644 --- a/scripts/node_FLIP_repel/node_FLIP_repel.gml +++ b/scripts/node_FLIP_repel/node_FLIP_repel.gml @@ -21,7 +21,7 @@ function Node_FLIP_Repel(_x, _y, _group = noone) : Node(_x, _y, _group) construc ["Repel", false], 1, 2, 3, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); static getDimension = function() { #region var domain = getInputData(0); diff --git a/scripts/node_FLIP_spawner/node_FLIP_spawner.gml b/scripts/node_FLIP_spawner/node_FLIP_spawner.gml index 083d045ad..ed67fe385 100644 --- a/scripts/node_FLIP_spawner/node_FLIP_spawner.gml +++ b/scripts/node_FLIP_spawner/node_FLIP_spawner.gml @@ -44,7 +44,7 @@ function Node_FLIP_Spawner(_x, _y, _group = noone) : Node(_x, _y, _group) constr ["Physics", false], 10, 6, 11, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); spawn_amo = 0; prev_position = [ 0, 0 ]; diff --git a/scripts/node_FLIP_to_VFX/node_FLIP_to_VFX.gml b/scripts/node_FLIP_to_VFX/node_FLIP_to_VFX.gml index d1e719040..89e360dbb 100644 --- a/scripts/node_FLIP_to_VFX/node_FLIP_to_VFX.gml +++ b/scripts/node_FLIP_to_VFX/node_FLIP_to_VFX.gml @@ -9,7 +9,7 @@ function Node_FLIP_to_VFX(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(0, nodeValue_Fdomain("Domain", self, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] ); + newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] )); attributes.part_amount = 512; array_push(attributeEditors, ["Maximum particles", function() { return attributes.part_amount; }, diff --git a/scripts/node_FLIP_update/node_FLIP_update.gml b/scripts/node_FLIP_update/node_FLIP_update.gml index 8e17c1c4d..fc116dcef 100644 --- a/scripts/node_FLIP_update/node_FLIP_update.gml +++ b/scripts/node_FLIP_update/node_FLIP_update.gml @@ -19,7 +19,7 @@ function Node_FLIP_Update(_x, _y, _group = noone) : Node(_x, _y, _group) constru ["Timestep", false], 2, 3, ]; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone)); static update = function(frame = CURRENT_FRAME) { var domain = getInputData(0); diff --git a/scripts/node_FLIP_vortex/node_FLIP_vortex.gml b/scripts/node_FLIP_vortex/node_FLIP_vortex.gml index c36c315cd..f811988e1 100644 --- a/scripts/node_FLIP_vortex/node_FLIP_vortex.gml +++ b/scripts/node_FLIP_vortex/node_FLIP_vortex.gml @@ -24,7 +24,7 @@ function Node_FLIP_Vortex(_x, _y, _group = noone) : Node(_x, _y, _group) constru ["Vertex", false], 1, 2, 3, 4, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); static getDimension = function() { #region var domain = getInputData(0); diff --git a/scripts/node_FLIP_wall/node_FLIP_wall.gml b/scripts/node_FLIP_wall/node_FLIP_wall.gml index 7fc46b809..9a5164b5d 100644 --- a/scripts/node_FLIP_wall/node_FLIP_wall.gml +++ b/scripts/node_FLIP_wall/node_FLIP_wall.gml @@ -15,7 +15,7 @@ function Node_FLIP_Wall(_x, _y, _group = noone) : Node(_x, _y, _group) construct ["Collider", false], 1 ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone ); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.fdomain, noone )); obstracle = new FLIP_Obstracle(); diff --git a/scripts/node_FXAA/node_FXAA.gml b/scripts/node_FXAA/node_FXAA.gml index 462f43d71..cf17e93c6 100644 --- a/scripts/node_FXAA/node_FXAA.gml +++ b/scripts/node_FXAA/node_FXAA.gml @@ -18,9 +18,9 @@ function Node_FXAA(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Effect", false], 2, 3, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Mask", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Mask", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_PCX_array_get/node_PCX_array_get.gml b/scripts/node_PCX_array_get/node_PCX_array_get.gml index 2d04ec37e..6d5a7a90a 100644 --- a/scripts/node_PCX_array_get/node_PCX_array_get.gml +++ b/scripts/node_PCX_array_get/node_PCX_array_get.gml @@ -5,7 +5,7 @@ function Node_PCX_Array_Get(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c newInput(1, nodeValue("Index", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _arr = getInputData(0); diff --git a/scripts/node_PCX_array_set/node_PCX_array_set.gml b/scripts/node_PCX_array_set/node_PCX_array_set.gml index a1c257063..4b141d4e3 100644 --- a/scripts/node_PCX_array_set/node_PCX_array_set.gml +++ b/scripts/node_PCX_array_set/node_PCX_array_set.gml @@ -7,7 +7,7 @@ function Node_PCX_Array_Set(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c newInput(2, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _arr = getInputData(0); diff --git a/scripts/node_PCX_condition/node_PCX_condition.gml b/scripts/node_PCX_condition/node_PCX_condition.gml index fe9b29d61..d18d3c0cc 100644 --- a/scripts/node_PCX_condition/node_PCX_condition.gml +++ b/scripts/node_PCX_condition/node_PCX_condition.gml @@ -7,7 +7,7 @@ function Node_PCX_Condition(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c newInput(2, nodeValue("False", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _cond = getInputData(0); diff --git a/scripts/node_PCX_equation/node_PCX_equation.gml b/scripts/node_PCX_equation/node_PCX_equation.gml index 5bd579f6d..9ca182642 100644 --- a/scripts/node_PCX_equation/node_PCX_equation.gml +++ b/scripts/node_PCX_equation/node_PCX_equation.gml @@ -6,7 +6,7 @@ function Node_PCX_Equation(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) co newInput(0, nodeValue_Text("Equation", self, "")); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.PCXnode, noone ); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.PCXnode, noone )); argument_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { argument_renderer.x = _x; diff --git a/scripts/node_PCX_fn_math/node_PCX_fn_math.gml b/scripts/node_PCX_fn_math/node_PCX_fn_math.gml index 7dc73cfc5..da3170404 100644 --- a/scripts/node_PCX_fn_math/node_PCX_fn_math.gml +++ b/scripts/node_PCX_fn_math/node_PCX_fn_math.gml @@ -13,7 +13,7 @@ function Node_PCX_fn_Math(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) con newInput(3, nodeValue("z", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { static syms = [ "+", "-", "*", "/", "$", "%", "abs", -1, "round", "floor", "ceil", diff --git a/scripts/node_PCX_fn_random/node_PCX_fn_random.gml b/scripts/node_PCX_fn_random/node_PCX_fn_random.gml index 6a8cef12a..4414247aa 100644 --- a/scripts/node_PCX_fn_random/node_PCX_fn_random.gml +++ b/scripts/node_PCX_fn_random/node_PCX_fn_random.gml @@ -7,7 +7,7 @@ function Node_PCX_fn_Random(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) c newInput(2, nodeValue_Bool("Integer", self, false)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); input_display_list = [ 2, 0, 1 ]; diff --git a/scripts/node_PCX_fn_surface_height/node_PCX_fn_surface_height.gml b/scripts/node_PCX_fn_surface_height/node_PCX_fn_surface_height.gml index e4a6ab8d6..4bd754b85 100644 --- a/scripts/node_PCX_fn_surface_height/node_PCX_fn_surface_height.gml +++ b/scripts/node_PCX_fn_surface_height/node_PCX_fn_surface_height.gml @@ -3,7 +3,7 @@ function Node_PCX_fn_Surface_Height(_x, _y, _group = noone) : Node_PCX(_x, _y, _ newInput(0, nodeValue("Surface", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _surf = getInputData(0); diff --git a/scripts/node_PCX_fn_surface_width/node_PCX_fn_surface_width.gml b/scripts/node_PCX_fn_surface_width/node_PCX_fn_surface_width.gml index 540f9721f..94466c31c 100644 --- a/scripts/node_PCX_fn_surface_width/node_PCX_fn_surface_width.gml +++ b/scripts/node_PCX_fn_surface_width/node_PCX_fn_surface_width.gml @@ -3,7 +3,7 @@ function Node_PCX_fn_Surface_Width(_x, _y, _group = noone) : Node_PCX(_x, _y, _g newInput(0, nodeValue("Surface", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _surf = getInputData(0); diff --git a/scripts/node_PCX_fn_var/node_PCX_fn_var.gml b/scripts/node_PCX_fn_var/node_PCX_fn_var.gml index 43d4bb535..387781bc7 100644 --- a/scripts/node_PCX_fn_var/node_PCX_fn_var.gml +++ b/scripts/node_PCX_fn_var/node_PCX_fn_var.gml @@ -4,7 +4,7 @@ function Node_PCX_fn_var(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) cons newInput(0, nodeValue("Default Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _def = getInputData(0); diff --git a/scripts/node_PCX_var/node_PCX_var.gml b/scripts/node_PCX_var/node_PCX_var.gml index e38d5d299..5d4220782 100644 --- a/scripts/node_PCX_var/node_PCX_var.gml +++ b/scripts/node_PCX_var/node_PCX_var.gml @@ -5,7 +5,7 @@ function Node_PCX_var(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) constru newInput(1, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, -1)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)); static update = function() { var _name = getInputData(0); diff --git a/scripts/node_VCT/node_VCT.gml b/scripts/node_VCT/node_VCT.gml index 39dbf9e0c..48fff306f 100644 --- a/scripts/node_VCT/node_VCT.gml +++ b/scripts/node_VCT/node_VCT.gml @@ -9,7 +9,7 @@ function Node_VCT(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) const vct.createDialog(); } }); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Automations", false], diff --git a/scripts/node_VFX_override/node_VFX_override.gml b/scripts/node_VFX_override/node_VFX_override.gml index 9ca3ce2e2..d7cc29aba 100644 --- a/scripts/node_VFX_override/node_VFX_override.gml +++ b/scripts/node_VFX_override/node_VFX_override.gml @@ -23,7 +23,7 @@ function Node_VFX_Override(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(6, nodeValue_Surface("Surface", self)) .setVisible(true, false); - outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 ); + newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, -1 )); static update = function(frame = CURRENT_FRAME) { var parts = getInputData(0); diff --git a/scripts/node_VFX_renderer/node_VFX_renderer.gml b/scripts/node_VFX_renderer/node_VFX_renderer.gml index 1579fa9d8..fa604f60d 100644 --- a/scripts/node_VFX_renderer/node_VFX_renderer.gml +++ b/scripts/node_VFX_renderer/node_VFX_renderer.gml @@ -42,7 +42,7 @@ function Node_VFX_Renderer(_x, _y, _group = noone) : Node(_x, _y, _group) constr setDynamicInput(2, true, VALUE_TYPE.particle); dyna_input_check_shift = 1; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); insp2UpdateTooltip = "Clear cache"; insp2UpdateIcon = [ THEME.cache, 0, COLORS._main_icon ]; diff --git a/scripts/node_VFX_spawner/node_VFX_spawner.gml b/scripts/node_VFX_spawner/node_VFX_spawner.gml index bb8c5c00b..4510937ef 100644 --- a/scripts/node_VFX_spawner/node_VFX_spawner.gml +++ b/scripts/node_VFX_spawner/node_VFX_spawner.gml @@ -17,10 +17,10 @@ function Node_VFX_Spawner(_x, _y, _group = noone) : Node_VFX_Spawner_Base(_x, _y newInput(input_len + 1, nodeValue_Int("Step interval", self, 1, "How often the 'on step' event is triggered.\nWith 1 being trigger every frame, 2 means triggered once every 2 frames.")); - outputs[0] = nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] ); - outputs[1] = nodeValue_Output("On create", self, VALUE_TYPE.node, noone ); - outputs[2] = nodeValue_Output("On step", self, VALUE_TYPE.node, noone ); - outputs[3] = nodeValue_Output("On destroy", self, VALUE_TYPE.node, noone ); + newOutput(0, nodeValue_Output("Particles", self, VALUE_TYPE.particle, [] )); + newOutput(1, nodeValue_Output("On create", self, VALUE_TYPE.node, noone )); + newOutput(2, nodeValue_Output("On step", self, VALUE_TYPE.node, noone )); + newOutput(3, nodeValue_Output("On destroy", self, VALUE_TYPE.node, noone )); array_insert(input_display_list, 0, ["Trigger", true], input_len + 0, input_len + 1); diff --git a/scripts/node_VFX_trail/node_VFX_trail.gml b/scripts/node_VFX_trail/node_VFX_trail.gml index 8aeaa7d55..49e4e45ad 100644 --- a/scripts/node_VFX_trail/node_VFX_trail.gml +++ b/scripts/node_VFX_trail/node_VFX_trail.gml @@ -17,7 +17,7 @@ function Node_VFX_Trail(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(2, nodeValue_Bool("Color", self, false )); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { #region draw_set_color(COLORS._main_accent); diff --git a/scripts/node_VFX_triangulate/node_VFX_triangulate.gml b/scripts/node_VFX_triangulate/node_VFX_triangulate.gml index ed7b6952f..87da80103 100644 --- a/scripts/node_VFX_triangulate/node_VFX_triangulate.gml +++ b/scripts/node_VFX_triangulate/node_VFX_triangulate.gml @@ -27,7 +27,7 @@ function Node_VFX_Triangulate(_x, _y, _group = noone) : Node(_x, _y, _group) con newInput(5, nodeValue_Bool("Inherit Color", self, false )); - outputs[0] = nodeValue_Output("Triangles", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Triangles", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, [ "Particles", false], 1, diff --git a/scripts/node_VFX_variable/node_VFX_variable.gml b/scripts/node_VFX_variable/node_VFX_variable.gml index b346877b0..467eb6948 100644 --- a/scripts/node_VFX_variable/node_VFX_variable.gml +++ b/scripts/node_VFX_variable/node_VFX_variable.gml @@ -13,43 +13,43 @@ function Node_VFX_Variable(_x, _y, _group = noone) : Node(_x, _y, _group) constr input_display_list = [ 0 ]; - outputs[0] = nodeValue_Output("Positions", self, VALUE_TYPE.float, [] ) + newOutput(0, nodeValue_Output("Positions", self, VALUE_TYPE.float, [] )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[1] = nodeValue_Output("Scales", self, VALUE_TYPE.float, [] ) + newOutput(1, nodeValue_Output("Scales", self, VALUE_TYPE.float, [] )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[2] = nodeValue_Output("Rotations", self, VALUE_TYPE.float, 0 ) + newOutput(2, nodeValue_Output("Rotations", self, VALUE_TYPE.float, 0 )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[3] = nodeValue_Output("Blending", self, VALUE_TYPE.color, 0 ) + newOutput(3, nodeValue_Output("Blending", self, VALUE_TYPE.color, 0 )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[4] = nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0 ) + newOutput(4, nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0 )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[5] = nodeValue_Output("Life", self, VALUE_TYPE.float, 0 ) + newOutput(5, nodeValue_Output("Life", self, VALUE_TYPE.float, 0 )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[6] = nodeValue_Output("Max life", self, VALUE_TYPE.float, 0 ) + newOutput(6, nodeValue_Output("Max life", self, VALUE_TYPE.float, 0 )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[7] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone ) + newOutput(7, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[8] = nodeValue_Output("Velocity", self, VALUE_TYPE.float, [] ) + newOutput(8, nodeValue_Output("Velocity", self, VALUE_TYPE.float, [] )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); - outputs[9] = nodeValue_Output("Seed", self, VALUE_TYPE.float, 0 ) + newOutput(9, nodeValue_Output("Seed", self, VALUE_TYPE.float, 0 )) .setDisplay(VALUE_DISPLAY.none) .setVisible(false); diff --git a/scripts/node_active_canvas/node_active_canvas.gml b/scripts/node_active_canvas/node_active_canvas.gml index a07a71421..36d990bfa 100644 --- a/scripts/node_active_canvas/node_active_canvas.gml +++ b/scripts/node_active_canvas/node_active_canvas.gml @@ -20,7 +20,7 @@ function Node_Active_Canvas(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(8, nodeValue_Range("Distance", self, [ 1, 1 ] , { linked : true })); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone ); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone )); input_display_list = [ 0, [ "Brush transform", false ], 7, 2, 3, 4, diff --git a/scripts/node_alpha_cutoff/node_alpha_cutoff.gml b/scripts/node_alpha_cutoff/node_alpha_cutoff.gml index ca887a60a..62661a0bf 100644 --- a/scripts/node_alpha_cutoff/node_alpha_cutoff.gml +++ b/scripts/node_alpha_cutoff/node_alpha_cutoff.gml @@ -21,7 +21,7 @@ function Node_Alpha_Cutoff(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro ["Cutoff", false], 1, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_alpha_grey/node_alpha_grey.gml b/scripts/node_alpha_grey/node_alpha_grey.gml index bcb307dc2..e9a534f52 100644 --- a/scripts/node_alpha_grey/node_alpha_grey.gml +++ b/scripts/node_alpha_grey/node_alpha_grey.gml @@ -6,7 +6,7 @@ function Node_Alpha_Grey(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(1, nodeValue_Bool("Active", self, true)); active_index = 1; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_alpha_hash/node_alpha_hash.gml b/scripts/node_alpha_hash/node_alpha_hash.gml index 59f09652d..da69d5c19 100644 --- a/scripts/node_alpha_hash/node_alpha_hash.gml +++ b/scripts/node_alpha_hash/node_alpha_hash.gml @@ -16,7 +16,7 @@ function Node_Alpha_Hash(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(0, nodeValue_Surface("Surface in", self)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_ambient_occlusion/node_ambient_occlusion.gml b/scripts/node_ambient_occlusion/node_ambient_occlusion.gml index ab5147939..d7193f1e3 100644 --- a/scripts/node_ambient_occlusion/node_ambient_occlusion.gml +++ b/scripts/node_ambient_occlusion/node_ambient_occlusion.gml @@ -17,7 +17,7 @@ function Node_Ambient_Occlusion(_x, _y, _group = noone) : Node_Processor(_x, _y, ["Effect", false], 3, 1, 4, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_anim_curve/node_anim_curve.gml b/scripts/node_anim_curve/node_anim_curve.gml index 537ee8853..5eed1ebd3 100644 --- a/scripts/node_anim_curve/node_anim_curve.gml +++ b/scripts/node_anim_curve/node_anim_curve.gml @@ -13,7 +13,7 @@ function Node_Anim_Curve(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(4, nodeValue_Bool("Animated", self, false)); - outputs[0] = nodeValue_Output("Curve", self, VALUE_TYPE.float, []); + newOutput(0, nodeValue_Output("Curve", self, VALUE_TYPE.float, [])); input_display_list = [ 0, 4, 1, 2, 3 ]; diff --git a/scripts/node_application_out/node_application_out.gml b/scripts/node_application_out/node_application_out.gml index ee2cc0c4d..3ccc1217e 100644 --- a/scripts/node_application_out/node_application_out.gml +++ b/scripts/node_application_out/node_application_out.gml @@ -8,7 +8,7 @@ function Node_Application_Out(_x, _y, _group = noone) : Node(_x, _y, _group) con name = "GUI Out"; update_on_frame = true; - outputs[0] = nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone)); APP_SURF_OVERRIDE = true; diff --git a/scripts/node_area/node_area.gml b/scripts/node_area/node_area.gml index ead7030e1..e73b87353 100644 --- a/scripts/node_area/node_area.gml +++ b/scripts/node_area/node_area.gml @@ -16,7 +16,7 @@ function Node_Area(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(3, nodeValue_Enum_Scroll("Type", self, 0, [ "Center Span", "Two Point" ])); - outputs[0] = nodeValue_Output("Area", self, VALUE_TYPE.float, [ 0, 0, 0, 0, AREA_SHAPE.rectangle ]) + newOutput(0, nodeValue_Output("Area", self, VALUE_TYPE.float, [ 0, 0, 0, 0, AREA_SHAPE.rectangle ])) .setDisplay(VALUE_DISPLAY.vector); input_display_list = [ 3, diff --git a/scripts/node_argument/node_argument.gml b/scripts/node_argument/node_argument.gml index a9cbbcbaf..31fab8350 100644 --- a/scripts/node_argument/node_argument.gml +++ b/scripts/node_argument/node_argument.gml @@ -10,7 +10,7 @@ function Node_Argument(_x, _y, _group = noone) : Node(_x, _y, _group) constructo newInput(2, nodeValue_Text("Default value", self, "")); - outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.text, "")); static step = function() { #region var typ = getInputData(1); diff --git a/scripts/node_armature/node_armature.gml b/scripts/node_armature/node_armature.gml index 547cf5dd0..00f05c40e 100644 --- a/scripts/node_armature/node_armature.gml +++ b/scripts/node_armature/node_armature.gml @@ -138,7 +138,7 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo return bone; } #endregion - outputs[0] = nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone); + newOutput(0, nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone)); #region ++++ attributes ++++ attributes.bones = new __Bone(,,,,, self); diff --git a/scripts/node_armature_bind/node_armature_bind.gml b/scripts/node_armature_bind/node_armature_bind.gml index 5838f7083..94b5dd70c 100644 --- a/scripts/node_armature_bind/node_armature_bind.gml +++ b/scripts/node_armature_bind/node_armature_bind.gml @@ -27,12 +27,12 @@ function Node_Armature_Bind(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(4, nodeValue_Float("Bone scale", self, 1)) .setDisplay(VALUE_DISPLAY.slider, { range: [ 0.1, 2, 0.01 ] }); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, []) + newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, [])) .rejectArrayProcess(); - outputs[2] = nodeValue_Output("Bind data", self, VALUE_TYPE.struct, []) + newOutput(2, nodeValue_Output("Bind data", self, VALUE_TYPE.struct, [])) .setArrayDepth(1); attribute_surface_depth(); diff --git a/scripts/node_armature_path/node_armature_path.gml b/scripts/node_armature_path/node_armature_path.gml index 920923316..c0b87458c 100644 --- a/scripts/node_armature_path/node_armature_path.gml +++ b/scripts/node_armature_path/node_armature_path.gml @@ -6,7 +6,7 @@ function Node_Armature_Path(_x, _y, _group = noone) : Node(_x, _y, _group) const .setVisible(true, true) .rejectArray(); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); lines = []; diff --git a/scripts/node_armature_pose/node_armature_pose.gml b/scripts/node_armature_pose/node_armature_pose.gml index a18c4c982..90221cf31 100644 --- a/scripts/node_armature_pose/node_armature_pose.gml +++ b/scripts/node_armature_pose/node_armature_pose.gml @@ -9,7 +9,7 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const ["Bones", false] ] - outputs[0] = nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone); + newOutput(0, nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone)); boneMap = ds_map_create(); diff --git a/scripts/node_armature_sample/node_armature_sample.gml b/scripts/node_armature_sample/node_armature_sample.gml index 76f785247..c6377595c 100644 --- a/scripts/node_armature_sample/node_armature_sample.gml +++ b/scripts/node_armature_sample/node_armature_sample.gml @@ -11,7 +11,7 @@ function Node_Armature_Sample(_x, _y, _group = noone) : Node(_x, _y, _group) con newInput(2, nodeValue_Float("Sample point", self, 0)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Position", self, VALUE_TYPE.integer, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Position", self, VALUE_TYPE.integer, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); #region ++++ attributes ++++ diff --git a/scripts/node_array/node_array.gml b/scripts/node_array/node_array.gml index f9ed035e9..40bd9aa71 100644 --- a/scripts/node_array/node_array.gml +++ b/scripts/node_array/node_array.gml @@ -30,7 +30,7 @@ function Node_Array(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { input_display_list = [ 0, 1, ["Contents", false], array_adjust_tool, ]; - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, []); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, [])); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_array_add/node_array_add.gml b/scripts/node_array_add/node_array_add.gml index ff8350242..4c1af9968 100644 --- a/scripts/node_array_add/node_array_add.gml +++ b/scripts/node_array_add/node_array_add.gml @@ -8,7 +8,7 @@ function Node_Array_Add(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(1, nodeValue_Bool("Spread array", self, false )) .rejectArray(); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.integer, 0)); input_display_list = [ 1, 0 ]; diff --git a/scripts/node_array_composite/node_array_composite.gml b/scripts/node_array_composite/node_array_composite.gml index e439e7937..ff68111bb 100644 --- a/scripts/node_array_composite/node_array_composite.gml +++ b/scripts/node_array_composite/node_array_composite.gml @@ -10,7 +10,7 @@ function Node_Array_Composite(_x, _y, _group = noone) : Node(_x, _y, _group) con .setArrayDepth(1) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, 0) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, 0)) .setArrayDepth(1); static composite = function(arr, com) { diff --git a/scripts/node_array_convolute/node_array_convolute.gml b/scripts/node_array_convolute/node_array_convolute.gml index 37d0a2d53..38e1011df 100644 --- a/scripts/node_array_convolute/node_array_convolute.gml +++ b/scripts/node_array_convolute/node_array_convolute.gml @@ -10,7 +10,7 @@ function Node_Array_Convolute(_x, _y, _group = noone) : Node(_x, _y, _group) con .setArrayDepth(1) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, 0) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, 0)) .setArrayDepth(1); static convolute = function(arr, ker) { diff --git a/scripts/node_array_copy/node_array_copy.gml b/scripts/node_array_copy/node_array_copy.gml index cc3df30aa..ba771641b 100644 --- a/scripts/node_array_copy/node_array_copy.gml +++ b/scripts/node_array_copy/node_array_copy.gml @@ -10,7 +10,7 @@ function Node_Array_Copy(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(2, nodeValue_Int("Size", self, 1)); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)) .setArrayDepth(1); static step = function() { diff --git a/scripts/node_array_csv_parse/node_array_csv_parse.gml b/scripts/node_array_csv_parse/node_array_csv_parse.gml index 796e0096f..8b042103e 100644 --- a/scripts/node_array_csv_parse/node_array_csv_parse.gml +++ b/scripts/node_array_csv_parse/node_array_csv_parse.gml @@ -7,7 +7,7 @@ function Node_Array_CSV_Parse(_x, _y, _group = noone) : Node(_x, _y, _group) con newInput(1, nodeValue_Int("Skip line", self, 0)); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)) .setArrayDepth(1); static update = function(frame = CURRENT_FRAME) { diff --git a/scripts/node_array_find/node_array_find.gml b/scripts/node_array_find/node_array_find.gml index bb9cae1d6..e6897b65c 100644 --- a/scripts/node_array_find/node_array_find.gml +++ b/scripts/node_array_find/node_array_find.gml @@ -9,7 +9,7 @@ function Node_Array_Find(_x, _y, _group = noone) : Node(_x, _y, _group) construc .setVisible(true, true) .rejectArray(); - outputs[0] = nodeValue_Output("Index", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Index", self, VALUE_TYPE.integer, 0)); static update = function(frame = CURRENT_FRAME) { var _arr = getInputData(0); diff --git a/scripts/node_array_get/node_array_get.gml b/scripts/node_array_get/node_array_get.gml index de7a362ba..38b95e67e 100644 --- a/scripts/node_array_get/node_array_get.gml +++ b/scripts/node_array_get/node_array_get.gml @@ -11,7 +11,7 @@ function Node_Array_Get(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(2, nodeValue_Enum_Scroll("Overflow", self, 0, [ "Clamp", "Loop", "Ping Pong" ])) .rejectArray(); - outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.any, 0)); static step = function() { inputs[0].setType(VALUE_TYPE.any); diff --git a/scripts/node_array_insert/node_array_insert.gml b/scripts/node_array_insert/node_array_insert.gml index 305e10d50..3152e0f2a 100644 --- a/scripts/node_array_insert/node_array_insert.gml +++ b/scripts/node_array_insert/node_array_insert.gml @@ -13,7 +13,7 @@ function Node_Array_Insert(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(3, nodeValue_Bool("Spread array", self, false )) .rejectArray(); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)); static update = function(frame = CURRENT_FRAME) { var _arr = getInputData(0); diff --git a/scripts/node_array_length/node_array_length.gml b/scripts/node_array_length/node_array_length.gml index 95e7b37f0..157112992 100644 --- a/scripts/node_array_length/node_array_length.gml +++ b/scripts/node_array_length/node_array_length.gml @@ -5,7 +5,7 @@ function Node_Array_Length(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Size", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Size", self, VALUE_TYPE.integer, 0)); static step = function() { #region inputs[0].setType(inputs[0].value_from == noone? VALUE_TYPE.any : inputs[0].value_from.type); diff --git a/scripts/node_array_pin/node_array_pin.gml b/scripts/node_array_pin/node_array_pin.gml index 40b1fdc97..a449b5237 100644 --- a/scripts/node_array_pin/node_array_pin.gml +++ b/scripts/node_array_pin/node_array_pin.gml @@ -12,7 +12,7 @@ function Node_Array_Pin(_x, _y, _group = noone) : Node(_x, _y, _group) construct bg_spr_add = 0; - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, []); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, [])); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_array_range/node_array_range.gml b/scripts/node_array_range/node_array_range.gml index 388f1bdf8..6750bc7bd 100644 --- a/scripts/node_array_range/node_array_range.gml +++ b/scripts/node_array_range/node_array_range.gml @@ -11,7 +11,7 @@ function Node_Array_Range(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(2, nodeValue_Float("Step", self, 1)) .rejectArray(); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, []); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, [])); static processData = function(_outSurf, _data, _output_index, _array_index) { var st = _data[0]; diff --git a/scripts/node_array_rearrange/node_array_rearrange.gml b/scripts/node_array_rearrange/node_array_rearrange.gml index 8c67406d3..78b3f0f01 100644 --- a/scripts/node_array_rearrange/node_array_rearrange.gml +++ b/scripts/node_array_rearrange/node_array_rearrange.gml @@ -11,7 +11,7 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con newInput(1, nodeValue_Int("Orders", self, [])) .setArrayDepth(1); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)) .setArrayDepth(1); type = VALUE_TYPE.any; diff --git a/scripts/node_array_remove/node_array_remove.gml b/scripts/node_array_remove/node_array_remove.gml index 113079832..4b55d02dd 100644 --- a/scripts/node_array_remove/node_array_remove.gml +++ b/scripts/node_array_remove/node_array_remove.gml @@ -16,7 +16,7 @@ function Node_Array_Remove(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(4, nodeValue_Bool("Spread array", self, false )) .rejectArray(); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)); static step = function() { var type = getInputData(1); diff --git a/scripts/node_array_reverse/node_array_reverse.gml b/scripts/node_array_reverse/node_array_reverse.gml index 25fb00bae..6aa837f6c 100644 --- a/scripts/node_array_reverse/node_array_reverse.gml +++ b/scripts/node_array_reverse/node_array_reverse.gml @@ -5,7 +5,7 @@ function Node_Array_Reverse(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)); static update = function(frame = CURRENT_FRAME) { var _arr = getInputData(0); diff --git a/scripts/node_array_sample/node_array_sample.gml b/scripts/node_array_sample/node_array_sample.gml index 103abe11a..c7a61a087 100644 --- a/scripts/node_array_sample/node_array_sample.gml +++ b/scripts/node_array_sample/node_array_sample.gml @@ -9,7 +9,7 @@ function Node_Array_Sample(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(1, nodeValue_Float("Step", self, 1)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.float, 0) + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.float, 0)) .setArrayDepth(1); static sample = function(arr, stp) { diff --git a/scripts/node_array_set/node_array_set.gml b/scripts/node_array_set/node_array_set.gml index e03bcdad5..773839551 100644 --- a/scripts/node_array_set/node_array_set.gml +++ b/scripts/node_array_set/node_array_set.gml @@ -10,7 +10,7 @@ function Node_Array_Set(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(2, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)); static update = function(frame = CURRENT_FRAME) { var _arr = getInputData(0); diff --git a/scripts/node_array_shift/node_array_shift.gml b/scripts/node_array_shift/node_array_shift.gml index d47b26238..55b8b8652 100644 --- a/scripts/node_array_shift/node_array_shift.gml +++ b/scripts/node_array_shift/node_array_shift.gml @@ -8,7 +8,7 @@ function Node_Array_Shift(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(1, nodeValue_Int("Shift", self, 0)) - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, 0)); static processData = function(_outSurf, _data, _output_index, _array_index) { var _arr = _data[0]; diff --git a/scripts/node_array_shuffle/node_array_shuffle.gml b/scripts/node_array_shuffle/node_array_shuffle.gml index eeb0b56db..a5a701133 100644 --- a/scripts/node_array_shuffle/node_array_shuffle.gml +++ b/scripts/node_array_shuffle/node_array_shuffle.gml @@ -10,7 +10,7 @@ function Node_Array_Shuffle(_x, _y, _group = noone) : Node(_x, _y, _group) const .setDisplay(VALUE_DISPLAY._default, { side_button : button(function() { randomize(); inputs[1].setValue(seed_random(6)); }).setIcon(THEME.icon_random, 0, COLORS._main_icon) }) .rejectArray(); - outputs[0] = nodeValue_Output("Shuffled array", self, VALUE_TYPE.any, []); + newOutput(0, nodeValue_Output("Shuffled array", self, VALUE_TYPE.any, [])); static update = function(frame = CURRENT_FRAME) { var arr = getInputData(0); diff --git a/scripts/node_array_sort/node_array_sort.gml b/scripts/node_array_sort/node_array_sort.gml index a4b702ed1..e7e7b1e52 100644 --- a/scripts/node_array_sort/node_array_sort.gml +++ b/scripts/node_array_sort/node_array_sort.gml @@ -9,9 +9,9 @@ function Node_Array_Sort(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(1, nodeValue_Enum_Button("Order", self, 0, [ "Ascending", "Descending" ])) .rejectArray(); - outputs[0] = nodeValue_Output("Sorted array", self, VALUE_TYPE.any, []); + newOutput(0, nodeValue_Output("Sorted array", self, VALUE_TYPE.any, [])); - outputs[1] = nodeValue_Output("Sorted index", self, VALUE_TYPE.integer, []) + newOutput(1, nodeValue_Output("Sorted index", self, VALUE_TYPE.integer, [])) .setVisible(false); static sortAcs = function(v1, v2) { return v2.val - v1.val; } diff --git a/scripts/node_array_split/node_array_split.gml b/scripts/node_array_split/node_array_split.gml index cf793163f..5c25a6b56 100644 --- a/scripts/node_array_split/node_array_split.gml +++ b/scripts/node_array_split/node_array_split.gml @@ -7,7 +7,7 @@ function Node_Array_Split(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, [])) .setVisible(true, true); - outputs[0] = nodeValue_Output("val 0", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("val 0", self, VALUE_TYPE.any, 0)); attributes.output_amount = 1; @@ -18,7 +18,6 @@ function Node_Array_Split(_x, _y, _group = noone) : Node(_x, _y, _group) constru inputs[0].resetDisplay(); if(!is_array(_inp)) { - attributes.output_amount = 0; return; } @@ -27,7 +26,7 @@ function Node_Array_Split(_x, _y, _group = noone) : Node(_x, _y, _group) constru for (var i = 0; i < amo; i++) { if(i >= array_length(outputs)) - outputs[i] = nodeValue_Output($"val {i}", self, type, 0) + newOutput(i, nodeValue_Output($"val {i}", self, type, 0)) outputs[i].setValue(_inp[i]); } @@ -49,9 +48,8 @@ function Node_Array_Split(_x, _y, _group = noone) : Node(_x, _y, _group) constru var _outAmo = attributes.output_amount; var _ind = 0; - repeat(_outAmo) { - array_push(outputs, nodeValue_Output($"val {_ind}", self, VALUE_TYPE.any, 0)); + newOutput(_ind, nodeValue_Output($"val {_ind}", self, VALUE_TYPE.any, 0)); _ind++; } } diff --git a/scripts/node_array_zip/node_array_zip.gml b/scripts/node_array_zip/node_array_zip.gml index a1f355fd0..dc22931f2 100644 --- a/scripts/node_array_zip/node_array_zip.gml +++ b/scripts/node_array_zip/node_array_zip.gml @@ -5,7 +5,7 @@ function Node_Array_Zip(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.integer, 0)); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_ase_file_read/node_ase_file_read.gml b/scripts/node_ase_file_read/node_ase_file_read.gml index 4a08db0f0..2d1a87cbf 100644 --- a/scripts/node_ase_file_read/node_ase_file_read.gml +++ b/scripts/node_ase_file_read/node_ase_file_read.gml @@ -39,13 +39,13 @@ function Node_ASE_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(3, nodeValue_Bool("Use cel dimension", self, false)); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Content", self, VALUE_TYPE.object, self); + newOutput(1, nodeValue_Output("Content", self, VALUE_TYPE.object, self)); - outputs[2] = nodeValue_Output("Path", self, VALUE_TYPE.path, ""); + newOutput(2, nodeValue_Output("Path", self, VALUE_TYPE.path, "")); - outputs[3] = nodeValue_Output("Palette", self, VALUE_TYPE.color, []) + newOutput(3, nodeValue_Output("Palette", self, VALUE_TYPE.color, [])) .setDisplay(VALUE_DISPLAY.palette); hold_visibility = true; diff --git a/scripts/node_ase_layer/node_ase_layer.gml b/scripts/node_ase_layer/node_ase_layer.gml index 7f0fee30c..8d2200517 100644 --- a/scripts/node_ase_layer/node_ase_layer.gml +++ b/scripts/node_ase_layer/node_ase_layer.gml @@ -8,7 +8,7 @@ function Node_ASE_layer(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(1, nodeValue_Bool("Crop Output", self, false)) .rejectArray(); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); layer_object = noone; _name = ""; diff --git a/scripts/node_atlas/node_atlas.gml b/scripts/node_atlas/node_atlas.gml index 6067465d6..d4ad196ea 100644 --- a/scripts/node_atlas/node_atlas.gml +++ b/scripts/node_atlas/node_atlas.gml @@ -8,7 +8,7 @@ function Node_Atlas(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(2, nodeValue_Enum_Scroll("Method", self, 0, [ "Radial", "Scan" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, 0, 2 ]; diff --git a/scripts/node_atlas_draw/node_atlas_draw.gml b/scripts/node_atlas_draw/node_atlas_draw.gml index e97381f78..83d28ea15 100644 --- a/scripts/node_atlas_draw/node_atlas_draw.gml +++ b/scripts/node_atlas_draw/node_atlas_draw.gml @@ -7,7 +7,7 @@ function Node_Atlas_Draw(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(1, nodeValue_Surface("Atlas", self)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); attribute_interpolation(true); diff --git a/scripts/node_atlas_get/node_atlas_get.gml b/scripts/node_atlas_get/node_atlas_get.gml index 97d23fd1b..2cf35c4ce 100644 --- a/scripts/node_atlas_get/node_atlas_get.gml +++ b/scripts/node_atlas_get/node_atlas_get.gml @@ -5,24 +5,24 @@ function Node_Atlas_Get(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(0, nodeValue_Surface("Atlas", self)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, []) + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, [])) .setArrayDepth(1); - outputs[1] = nodeValue_Output("Position", self, VALUE_TYPE.float, []) + newOutput(1, nodeValue_Output("Position", self, VALUE_TYPE.float, [])) .setDisplay(VALUE_DISPLAY.vector) .setArrayDepth(1); - outputs[2] = nodeValue_Output("Rotation", self, VALUE_TYPE.float, []) + newOutput(2, nodeValue_Output("Rotation", self, VALUE_TYPE.float, [])) .setArrayDepth(1); - outputs[3] = nodeValue_Output("Scale", self, VALUE_TYPE.float, []) + newOutput(3, nodeValue_Output("Scale", self, VALUE_TYPE.float, [])) .setDisplay(VALUE_DISPLAY.vector) .setArrayDepth(1); - outputs[4] = nodeValue_Output("Blend", self, VALUE_TYPE.color, []) + newOutput(4, nodeValue_Output("Blend", self, VALUE_TYPE.color, [])) .setArrayDepth(1); - outputs[5] = nodeValue_Output("Alpha", self, VALUE_TYPE.float, []) + newOutput(5, nodeValue_Output("Alpha", self, VALUE_TYPE.float, [])) .setArrayDepth(1); static update = function(frame = CURRENT_FRAME) { diff --git a/scripts/node_atlas_set/node_atlas_set.gml b/scripts/node_atlas_set/node_atlas_set.gml index 189e779fa..2cdd4200e 100644 --- a/scripts/node_atlas_set/node_atlas_set.gml +++ b/scripts/node_atlas_set/node_atlas_set.gml @@ -19,7 +19,7 @@ function Node_Atlas_Set(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(7, nodeValue_Bool("Recalculate Position", self, true)); - outputs[0] = nodeValue_Output("Atlas", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Atlas", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, 1, 2, 3, 7, 4, 5, 6, diff --git a/scripts/node_atlas_to_struct/node_atlas_to_struct.gml b/scripts/node_atlas_to_struct/node_atlas_to_struct.gml index 2c0ffb02e..d7a367795 100644 --- a/scripts/node_atlas_to_struct/node_atlas_to_struct.gml +++ b/scripts/node_atlas_to_struct/node_atlas_to_struct.gml @@ -5,7 +5,7 @@ function Node_Atlas_Struct(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(0, nodeValue_Surface("Atlas", self)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Struct", self, VALUE_TYPE.struct, []) + newOutput(0, nodeValue_Output("Struct", self, VALUE_TYPE.struct, [])) .setArrayDepth(1); static update = function(frame = CURRENT_FRAME) { diff --git a/scripts/node_audio_loudness/node_audio_loudness.gml b/scripts/node_audio_loudness/node_audio_loudness.gml index 0695ace34..59fd8a8b0 100644 --- a/scripts/node_audio_loudness/node_audio_loudness.gml +++ b/scripts/node_audio_loudness/node_audio_loudness.gml @@ -6,7 +6,7 @@ function Node_Audio_Loudness(_x, _y, _group = noone) : Node_Processor(_x, _y, _g .setArrayDepth(1) .setVisible(true, true); - outputs[0] = nodeValue_Output("Loudness", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Loudness", self, VALUE_TYPE.float, 0)); static processData = function(_outSurf, _data, _output_index, _array_index) { var _dat = _data[0]; diff --git a/scripts/node_audio_window/node_audio_window.gml b/scripts/node_audio_window/node_audio_window.gml index 30d8f4149..727cbb311 100644 --- a/scripts/node_audio_window/node_audio_window.gml +++ b/scripts/node_audio_window/node_audio_window.gml @@ -22,7 +22,7 @@ function Node_Audio_Window(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(5, nodeValue_Bool("Match timeline", self, true, "Set window cursor to match animation timeline.")); - outputs[0] = nodeValue_Output("Bit Array", self, VALUE_TYPE.float, []) + newOutput(0, nodeValue_Output("Bit Array", self, VALUE_TYPE.float, [])) .setArrayDepth(1); input_display_list = [ 0, diff --git a/scripts/node_average/node_average.gml b/scripts/node_average/node_average.gml index 9e3112c31..0349cb842 100644 --- a/scripts/node_average/node_average.gml +++ b/scripts/node_average/node_average.gml @@ -19,9 +19,9 @@ function Node_Average(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ["Surfaces", false], 0, 1, 2, 5, 6, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_black); + newOutput(1, nodeValue_Output("Color", self, VALUE_TYPE.color, c_black)); attribute_surface_depth(); diff --git a/scripts/node_base_convert/node_base_convert.gml b/scripts/node_base_convert/node_base_convert.gml index e38d21f3b..fc583d6f8 100644 --- a/scripts/node_base_convert/node_base_convert.gml +++ b/scripts/node_base_convert/node_base_convert.gml @@ -11,7 +11,7 @@ function Node_Base_Convert(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(2, nodeValue_Int("Base to", self, 10)); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.text, "")); static processData = function(_output, _data, _output_index, _array_index = 0) { var val = _data[0]; diff --git a/scripts/node_bend/node_bend.gml b/scripts/node_bend/node_bend.gml index 4e0c6ed80..36100bf60 100644 --- a/scripts/node_bend/node_bend.gml +++ b/scripts/node_bend/node_bend.gml @@ -18,7 +18,7 @@ function Node_Bend(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(6, nodeValue_Float("Shift", self, 0.)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_bevel/node_bevel.gml b/scripts/node_bevel/node_bevel.gml index 9e496b4b8..d467792c9 100644 --- a/scripts/node_bevel/node_bevel.gml +++ b/scripts/node_bevel/node_bevel.gml @@ -33,7 +33,7 @@ function Node_Bevel(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_blend/node_blend.gml b/scripts/node_blend/node_blend.gml index b8da6b389..095eaee28 100644 --- a/scripts/node_blend/node_blend.gml +++ b/scripts/node_blend/node_blend.gml @@ -67,7 +67,7 @@ function Node_Blend(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(14, nodeValue_Vec2("Position", self, [ 0.5, 0.5 ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 8, ["Surfaces", true], 0, 1, 4, 12, 13, 6, 7, diff --git a/scripts/node_blend_edge/node_blend_edge.gml b/scripts/node_blend_edge/node_blend_edge.gml index a7fd69c17..0e6ce601c 100644 --- a/scripts/node_blend_edge/node_blend_edge.gml +++ b/scripts/node_blend_edge/node_blend_edge.gml @@ -32,7 +32,7 @@ function Node_Blend_Edge(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Blend", false], 2, 1, 5, 6, 7, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); temp_surface = array_create(1); diff --git a/scripts/node_blobify/node_blobify.gml b/scripts/node_blobify/node_blobify.gml index c00450a44..ea8507dda 100644 --- a/scripts/node_blobify/node_blobify.gml +++ b/scripts/node_blobify/node_blobify.gml @@ -18,7 +18,7 @@ function Node_Blobify(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ["Blobify", false], 2, 3, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_bloom/node_bloom.gml b/scripts/node_bloom/node_bloom.gml index 80c139ed1..de8220d37 100644 --- a/scripts/node_bloom/node_bloom.gml +++ b/scripts/node_bloom/node_bloom.gml @@ -41,9 +41,9 @@ function Node_Bloom(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con ["Blur", false], 13, 11, 12, 14, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Bloom Mask", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Bloom Mask", self, VALUE_TYPE.surface, noone)); temp_surface = [ 0 ]; diff --git a/scripts/node_blur/node_blur.gml b/scripts/node_blur/node_blur.gml index 95f4e5d2b..ab85fb125 100644 --- a/scripts/node_blur/node_blur.gml +++ b/scripts/node_blur/node_blur.gml @@ -31,7 +31,7 @@ function Node_Blur(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(13, nodeValue_Rotation("Direction", self, 0)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, 8, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_blur_bokeh/node_blur_bokeh.gml b/scripts/node_blur_bokeh/node_blur_bokeh.gml index c95897151..6640dc4b9 100644 --- a/scripts/node_blur_bokeh/node_blur_bokeh.gml +++ b/scripts/node_blur_bokeh/node_blur_bokeh.gml @@ -30,7 +30,7 @@ function Node_Blur_Bokeh(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Blur", false], 1, 8, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_blur_contrast/node_blur_contrast.gml b/scripts/node_blur_contrast/node_blur_contrast.gml index 488f79963..a1177a4ee 100644 --- a/scripts/node_blur_contrast/node_blur_contrast.gml +++ b/scripts/node_blur_contrast/node_blur_contrast.gml @@ -28,7 +28,7 @@ function Node_Blur_Contrast(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr ["Blur", false], 1, 2, 9, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); temp_surface = [ surface_create(1, 1) ]; diff --git a/scripts/node_blur_directional/node_blur_directional.gml b/scripts/node_blur_directional/node_blur_directional.gml index 99f14f33e..5b1399dd6 100644 --- a/scripts/node_blur_directional/node_blur_directional.gml +++ b/scripts/node_blur_directional/node_blur_directional.gml @@ -39,7 +39,7 @@ function Node_Blur_Directional(_x, _y, _group = noone) : Node_Processor(_x, _y, ["Blur", false], 1, 9, 2, 10, 11, 12, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_blur_path/node_blur_path.gml b/scripts/node_blur_path/node_blur_path.gml index 69433c745..3334a7002 100644 --- a/scripts/node_blur_path/node_blur_path.gml +++ b/scripts/node_blur_path/node_blur_path.gml @@ -34,7 +34,7 @@ function Node_Blur_Path(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Blur", false], 2, 9, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_blur_radial/node_blur_radial.gml b/scripts/node_blur_radial/node_blur_radial.gml index b30402718..34670559f 100644 --- a/scripts/node_blur_radial/node_blur_radial.gml +++ b/scripts/node_blur_radial/node_blur_radial.gml @@ -32,7 +32,7 @@ function Node_Blur_Radial(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(11, nodeValue_Bool("Gamma Correction", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 6, 7, ["Surfaces", true], 0, 4, 5, 8, 9, diff --git a/scripts/node_blur_shape/node_blur_shape.gml b/scripts/node_blur_shape/node_blur_shape.gml index 9f42425c0..8ce57ce6e 100644 --- a/scripts/node_blur_shape/node_blur_shape.gml +++ b/scripts/node_blur_shape/node_blur_shape.gml @@ -27,7 +27,7 @@ function Node_Blur_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Blur", false], 7, 1, 2, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_blur_simple/node_blur_simple.gml b/scripts/node_blur_simple/node_blur_simple.gml index 7127edeb4..e415a5bbd 100644 --- a/scripts/node_blur_simple/node_blur_simple.gml +++ b/scripts/node_blur_simple/node_blur_simple.gml @@ -43,7 +43,7 @@ function Node_Blur_Simple(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Effects", false, 15], 12, 13, 14, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_blur_slope/node_blur_slope.gml b/scripts/node_blur_slope/node_blur_slope.gml index 5ca0e015e..62c6067e1 100644 --- a/scripts/node_blur_slope/node_blur_slope.gml +++ b/scripts/node_blur_slope/node_blur_slope.gml @@ -37,7 +37,7 @@ function Node_Blur_Slope(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Blur", false], 2, 1, 9, 10, 11, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_blur_zoom/node_blur_zoom.gml b/scripts/node_blur_zoom/node_blur_zoom.gml index 780ef957a..2633dd7dc 100644 --- a/scripts/node_blur_zoom/node_blur_zoom.gml +++ b/scripts/node_blur_zoom/node_blur_zoom.gml @@ -36,7 +36,7 @@ function Node_Blur_Zoom(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(13, nodeValue_Bool("Gamma Correction", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 8, 9, ["Surfaces", true], 0, 6, 7, 10, 11, diff --git a/scripts/node_boolean/node_boolean.gml b/scripts/node_boolean/node_boolean.gml index 6574261c5..64765ec46 100644 --- a/scripts/node_boolean/node_boolean.gml +++ b/scripts/node_boolean/node_boolean.gml @@ -15,7 +15,7 @@ function Node_Boolean(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(2, nodeValue_Enum_Button("Name location", self, 1, [ "Top", "Bottom" ])); - outputs[0] = nodeValue_Output("Boolean", self, VALUE_TYPE.boolean, false); + newOutput(0, nodeValue_Output("Boolean", self, VALUE_TYPE.boolean, false)); input_display_list = [ 0, ["Display", false], 1, 2, diff --git a/scripts/node_box_pattern/node_box_pattern.gml b/scripts/node_box_pattern/node_box_pattern.gml index a1c860529..d51c8847d 100644 --- a/scripts/node_box_pattern/node_box_pattern.gml +++ b/scripts/node_box_pattern/node_box_pattern.gml @@ -37,7 +37,7 @@ function Node_Box_Pattern(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(12, nodeValue_Int("Iteration", self, 4)) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", true], 0, diff --git a/scripts/node_brush_linear/node_brush_linear.gml b/scripts/node_brush_linear/node_brush_linear.gml index 1e69215a0..04dd5190d 100644 --- a/scripts/node_brush_linear/node_brush_linear.gml +++ b/scripts/node_brush_linear/node_brush_linear.gml @@ -29,7 +29,7 @@ function Node_Brush_Linear(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro __init_mask_modifier(7); // inputs 10, 11 - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surface", false], 0, 7, 8, 9, 10, 11, diff --git a/scripts/node_bw/node_bw.gml b/scripts/node_bw/node_bw.gml index 5f135cae3..6dca47fe4 100644 --- a/scripts/node_bw/node_bw.gml +++ b/scripts/node_bw/node_bw.gml @@ -36,7 +36,7 @@ function Node_BW(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constr ["BW", false], 1, 9, 2, 10, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_byte_file_read/node_byte_file_read.gml b/scripts/node_byte_file_read/node_byte_file_read.gml index 301c9fd9a..548842453 100644 --- a/scripts/node_byte_file_read/node_byte_file_read.gml +++ b/scripts/node_byte_file_read/node_byte_file_read.gml @@ -8,8 +8,8 @@ function Node_Byte_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) cons .setDisplay(VALUE_DISPLAY.path_load, { filter: "any file|*" }) .rejectArray(); - outputs[0] = nodeValue_Output("Content", self, VALUE_TYPE.buffer, noone); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(0, nodeValue_Output("Content", self, VALUE_TYPE.buffer, noone)); + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); content = noone; diff --git a/scripts/node_cache/node_cache.gml b/scripts/node_cache/node_cache.gml index eaa6ccf76..270b906b9 100644 --- a/scripts/node_cache/node_cache.gml +++ b/scripts/node_cache/node_cache.gml @@ -4,7 +4,7 @@ function Node_Cache(_x, _y, _group = noone) : __Node_Cache(_x, _y, _group) const newInput(0, nodeValue_Surface("Surface in", self)); - outputs[0] = nodeValue_Output("Cache surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Cache surface", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 0, diff --git a/scripts/node_cache_array/node_cache_array.gml b/scripts/node_cache_array/node_cache_array.gml index c79125b7d..d4a7d5b2e 100644 --- a/scripts/node_cache_array/node_cache_array.gml +++ b/scripts/node_cache_array/node_cache_array.gml @@ -10,7 +10,7 @@ function Node_Cache_Array(_x, _y, _group = noone) : __Node_Cache(_x, _y, _group) newInput(3, nodeValue_Int("Step", self, 1, "Cache every N frames, set to 1 to cache every frame.")); - outputs[0] = nodeValue_Output("Cache array", self, VALUE_TYPE.surface, []); + newOutput(0, nodeValue_Output("Cache array", self, VALUE_TYPE.surface, [])); input_display_list = [ ["Surfaces", true], 0, diff --git a/scripts/node_camera/node_camera.gml b/scripts/node_camera/node_camera.gml index 3b2e95311..f128b3f27 100644 --- a/scripts/node_camera/node_camera.gml +++ b/scripts/node_camera/node_camera.gml @@ -16,7 +16,7 @@ function Node_Camera(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(5, nodeValue_Float("Focal range", self, 0)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Camera", false], 0, 1, diff --git a/scripts/node_canvas/node_canvas.gml b/scripts/node_canvas/node_canvas.gml index de3f0c6d7..48d496971 100644 --- a/scripts/node_canvas/node_canvas.gml +++ b/scripts/node_canvas/node_canvas.gml @@ -45,7 +45,7 @@ function Node_Canvas(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(18, nodeValue_Enum_Scroll("Animation Type", self, 0, [ "Loop", "Hold", "Clear" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); frame_renderer_x = 0; frame_renderer_x_to = 0; diff --git a/scripts/node_cellular/node_cellular.gml b/scripts/node_cellular/node_cellular.gml index f9d20135a..85ece912f 100644 --- a/scripts/node_cellular/node_cellular.gml +++ b/scripts/node_cellular/node_cellular.gml @@ -46,7 +46,7 @@ function Node_Cellular(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Rendering", false], 5, 7, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_checker/node_checker.gml b/scripts/node_checker/node_checker.gml index 35f9bea44..1cdb7c68d 100644 --- a/scripts/node_checker/node_checker.gml +++ b/scripts/node_checker/node_checker.gml @@ -27,7 +27,7 @@ function Node_Checker(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(8, nodeValue_Enum_Button("Type", self, 0, [ "Solid", "Smooth", "AA" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", true], 0, diff --git a/scripts/node_chromatic_aberration/node_chromatic_aberration.gml b/scripts/node_chromatic_aberration/node_chromatic_aberration.gml index 5ac9ffecb..35bb4e89d 100644 --- a/scripts/node_chromatic_aberration/node_chromatic_aberration.gml +++ b/scripts/node_chromatic_aberration/node_chromatic_aberration.gml @@ -19,7 +19,7 @@ function Node_Chromatic_Aberration(_x, _y, _group = noone) : Node_Processor(_x, ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, ["Surface", false], 0, diff --git a/scripts/node_color/node_color.gml b/scripts/node_color/node_color.gml index 0a9244cc5..1537db325 100644 --- a/scripts/node_color/node_color.gml +++ b/scripts/node_color/node_color.gml @@ -4,7 +4,7 @@ function Node_Color(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(0, nodeValue_Color("Color", self, c_white)); - outputs[0] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_white); + newOutput(0, nodeValue_Output("Color", self, VALUE_TYPE.color, c_white)); static processData = function(_output, _data, _output_index, _array_index = 0) { return _data[0]; diff --git a/scripts/node_color_adjust/node_color_adjust.gml b/scripts/node_color_adjust/node_color_adjust.gml index 0cca50046..184e7e18d 100644 --- a/scripts/node_color_adjust/node_color_adjust.gml +++ b/scripts/node_color_adjust/node_color_adjust.gml @@ -85,9 +85,9 @@ function Node_Color_adjust(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro //////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Color out", self, VALUE_TYPE.color, []) + newOutput(1, nodeValue_Output("Color out", self, VALUE_TYPE.color, [])) .setDisplay(VALUE_DISPLAY.palette); input_display_list = [11, 12, 15, 9, 24, diff --git a/scripts/node_color_data/node_color_data.gml b/scripts/node_color_data/node_color_data.gml index 0e8c825b6..3e97172b9 100644 --- a/scripts/node_color_data/node_color_data.gml +++ b/scripts/node_color_data/node_color_data.gml @@ -8,16 +8,16 @@ function Node_Color_Data(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(1, nodeValue_Bool("Normalize", self, true)); - outputs[0] = nodeValue_Output("Red", self, VALUE_TYPE.float, 0); - outputs[1] = nodeValue_Output("Green", self, VALUE_TYPE.float, 0); - outputs[2] = nodeValue_Output("Blue", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Red", self, VALUE_TYPE.float, 0)); + newOutput(1, nodeValue_Output("Green", self, VALUE_TYPE.float, 0)); + newOutput(2, nodeValue_Output("Blue", self, VALUE_TYPE.float, 0)); - outputs[3] = nodeValue_Output("Hue", self, VALUE_TYPE.float, 0).setVisible(false); - outputs[4] = nodeValue_Output("Saturation", self, VALUE_TYPE.float, 0).setVisible(false); - outputs[5] = nodeValue_Output("Value", self, VALUE_TYPE.float, 0).setVisible(false); + newOutput(3, nodeValue_Output("Hue", self, VALUE_TYPE.float, 0).setVisible(false)); + newOutput(4, nodeValue_Output("Saturation", self, VALUE_TYPE.float, 0).setVisible(false)); + newOutput(5, nodeValue_Output("Value", self, VALUE_TYPE.float, 0).setVisible(false)); - outputs[6] = nodeValue_Output("Brightness", self, VALUE_TYPE.float, 0).setVisible(false); - outputs[7] = nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0).setVisible(false); + newOutput(6, nodeValue_Output("Brightness", self, VALUE_TYPE.float, 0).setVisible(false)); + newOutput(7, nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0).setVisible(false)); static processData = function(_output, _data, _output_index, _array_index = 0) { var _c = _data[0]; diff --git a/scripts/node_color_hsv/node_color_hsv.gml b/scripts/node_color_hsv/node_color_hsv.gml index aac5a6031..e83c675df 100644 --- a/scripts/node_color_hsv/node_color_hsv.gml +++ b/scripts/node_color_hsv/node_color_hsv.gml @@ -19,7 +19,7 @@ function Node_Color_HSV(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(4, nodeValue_Float("Alpha", self, 1)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_white); + newOutput(0, nodeValue_Output("Color", self, VALUE_TYPE.color, c_white)); input_display_list = [ 3, 0, 1, 2, 4 ]; diff --git a/scripts/node_color_mix/node_color_mix.gml b/scripts/node_color_mix/node_color_mix.gml index 4c248085a..4273da99d 100644 --- a/scripts/node_color_mix/node_color_mix.gml +++ b/scripts/node_color_mix/node_color_mix.gml @@ -11,7 +11,7 @@ function Node_Color_Mix(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(3, nodeValue_Enum_Button("Color space", self, 0, [ "RGB", "HSV", "OKLAB" ])); - outputs[0] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_white); + newOutput(0, nodeValue_Output("Color", self, VALUE_TYPE.color, c_white)); input_display_list = [ 3, 0, 1, 2 ]; diff --git a/scripts/node_color_remove/node_color_remove.gml b/scripts/node_color_remove/node_color_remove.gml index 40d526cb6..d6008c805 100644 --- a/scripts/node_color_remove/node_color_remove.gml +++ b/scripts/node_color_remove/node_color_remove.gml @@ -34,7 +34,7 @@ function Node_Color_Remove(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro ["Remove", false], 1, 2, 10, 6, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_color_replace/node_color_replace.gml b/scripts/node_color_replace/node_color_replace.gml index e44cb3ba6..fee1b62e4 100644 --- a/scripts/node_color_replace/node_color_replace.gml +++ b/scripts/node_color_replace/node_color_replace.gml @@ -38,7 +38,7 @@ function Node_Color_replace(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr ["Render", false], 4, 6 ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_color_rgb/node_color_rgb.gml b/scripts/node_color_rgb/node_color_rgb.gml index cb79d40d9..6432cb5db 100644 --- a/scripts/node_color_rgb/node_color_rgb.gml +++ b/scripts/node_color_rgb/node_color_rgb.gml @@ -20,7 +20,7 @@ function Node_Color_RGB(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(4, nodeValue_Float("Alpha", self, 1)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_white); + newOutput(0, nodeValue_Output("Color", self, VALUE_TYPE.color, c_white)); input_display_list = [ 3, 0, 1, 2, 4 ]; diff --git a/scripts/node_colorize/node_colorize.gml b/scripts/node_colorize/node_colorize.gml index 1791494b0..e4a495751 100644 --- a/scripts/node_colorize/node_colorize.gml +++ b/scripts/node_colorize/node_colorize.gml @@ -39,7 +39,7 @@ function Node_Colorize(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Colorize", false], 1, 11, 2, 10, 6, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_colors_replace/node_colors_replace.gml b/scripts/node_colors_replace/node_colors_replace.gml index 9bf3a4fbc..7b6339da9 100644 --- a/scripts/node_colors_replace/node_colors_replace.gml +++ b/scripts/node_colors_replace/node_colors_replace.gml @@ -185,7 +185,7 @@ function Node_Colors_Replace(_x, _y, _group = noone) : Node_Processor(_x, _y, _g //["Comparison", false], 3, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_combine_hsv/node_combine_hsv.gml b/scripts/node_combine_hsv/node_combine_hsv.gml index 497d64b8a..7953d3234 100644 --- a/scripts/node_combine_hsv/node_combine_hsv.gml +++ b/scripts/node_combine_hsv/node_combine_hsv.gml @@ -11,7 +11,7 @@ function Node_Combine_HSV(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(5, nodeValue_Surface("HSV Array", self, [])) .setArrayDepth(1); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 4, 0, 1, 2, 3, 5, diff --git a/scripts/node_combine_rgb/node_combine_rgb.gml b/scripts/node_combine_rgb/node_combine_rgb.gml index 34cf728f7..999287313 100644 --- a/scripts/node_combine_rgb/node_combine_rgb.gml +++ b/scripts/node_combine_rgb/node_combine_rgb.gml @@ -24,7 +24,7 @@ function Node_Combine_RGB(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(8, nodeValue_Surface("RGBA Array", self, [])) .setArrayDepth(1); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Sampling", false], 4, 5, 6, diff --git a/scripts/node_compare/node_compare.gml b/scripts/node_compare/node_compare.gml index b83772307..1def1dc28 100644 --- a/scripts/node_compare/node_compare.gml +++ b/scripts/node_compare/node_compare.gml @@ -46,7 +46,7 @@ function Node_Compare(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(2, nodeValue_Float("b", self, 0)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.boolean, false); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.boolean, false)); static _compare = function(mode, a, b) { switch(mode) { diff --git a/scripts/node_composite/node_composite.gml b/scripts/node_composite/node_composite.gml index 702bdb3fa..2685f8176 100644 --- a/scripts/node_composite/node_composite.gml +++ b/scripts/node_composite/node_composite.gml @@ -443,11 +443,11 @@ function Node_Composite(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) setDynamicInput(6, true, VALUE_TYPE.surface); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.atlas, []); + newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.atlas, [])); - outputs[2] = nodeValue_Output("Dimension", self, VALUE_TYPE.integer, [1, 1]) + newOutput(2, nodeValue_Output("Dimension", self, VALUE_TYPE.integer, [1, 1])) .setVisible(false) .setDisplay(VALUE_DISPLAY.vector); diff --git a/scripts/node_condition/node_condition.gml b/scripts/node_condition/node_condition.gml index cec31d5b2..c4017b1a0 100644 --- a/scripts/node_condition/node_condition.gml +++ b/scripts/node_condition/node_condition.gml @@ -39,8 +39,8 @@ function Node_Condition(_x, _y, _group = noone) : Node(_x, _y, _group) construct ["Result", true], 3, 4 ] - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.any, []); - outputs[1] = nodeValue_Output("Bool", self, VALUE_TYPE.boolean, false); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.any, [])); + newOutput(1, nodeValue_Output("Bool", self, VALUE_TYPE.boolean, false)); static step = function() { #region var _mode = getInputData(5); diff --git a/scripts/node_convolution/node_convolution.gml b/scripts/node_convolution/node_convolution.gml index 5bbdf25ac..9f12699f9 100644 --- a/scripts/node_convolution/node_convolution.gml +++ b/scripts/node_convolution/node_convolution.gml @@ -21,7 +21,7 @@ function Node_Convolution(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou __init_mask_modifier(3); // inputs 7, 8, - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 5, 6, ["Surfaces", true], 0, 3, 4, 7, 8, diff --git a/scripts/node_corner/node_corner.gml b/scripts/node_corner/node_corner.gml index 92c833c83..f8791c5dd 100644 --- a/scripts/node_corner/node_corner.gml +++ b/scripts/node_corner/node_corner.gml @@ -23,7 +23,7 @@ function Node_Corner(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co ["Corner", false], 1, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_counter/node_counter.gml b/scripts/node_counter/node_counter.gml index e8fcfd981..202d15cb5 100644 --- a/scripts/node_counter/node_counter.gml +++ b/scripts/node_counter/node_counter.gml @@ -14,7 +14,7 @@ function Node_Counter(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c .setDisplay(VALUE_DISPLAY.enum_scroll, ["Frame count", "Animation progress"])) .rejectArray(); - outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.float, 0)); input_display_list = [ 2, 0, 1 diff --git a/scripts/node_crop/node_crop.gml b/scripts/node_crop/node_crop.gml index 0c45b810a..f69646da1 100644 --- a/scripts/node_crop/node_crop.gml +++ b/scripts/node_crop/node_crop.gml @@ -21,7 +21,7 @@ function Node_Crop(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(7, nodeValue_Enum_Scroll("Fit Mode", self, 0, [ "Manual", "Width", "Height", "Minimum" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 2, ["Surface", true], 0, diff --git a/scripts/node_crop_content/node_crop_content.gml b/scripts/node_crop_content/node_crop_content.gml index d60b2ab17..42a25b9c4 100644 --- a/scripts/node_crop_content/node_crop_content.gml +++ b/scripts/node_crop_content/node_crop_content.gml @@ -10,7 +10,7 @@ function Node_Crop_Content(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(3, nodeValue_Padding("Padding", self, [ 0, 0, 0, 0 ], "Add padding back after crop.")); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, 2, diff --git a/scripts/node_cross_section/node_cross_section.gml b/scripts/node_cross_section/node_cross_section.gml index df864c46d..1d90cf492 100644 --- a/scripts/node_cross_section/node_cross_section.gml +++ b/scripts/node_cross_section/node_cross_section.gml @@ -12,7 +12,7 @@ function Node_Cross_Section(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(4, nodeValue_Enum_Button("Mode", self, 0 , [ "BW", "Colored" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone ); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone )); input_display_list = [ ["Surfaces", false], 0, diff --git a/scripts/node_csv_file_read/node_csv_file_read.gml b/scripts/node_csv_file_read/node_csv_file_read.gml index d6e2002a0..2dedf29fc 100644 --- a/scripts/node_csv_file_read/node_csv_file_read.gml +++ b/scripts/node_csv_file_read/node_csv_file_read.gml @@ -36,9 +36,9 @@ function Node_CSV_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(1, nodeValue_Bool("Convert to number", self, false)) .rejectArray(); - outputs[0] = nodeValue_Output("Content", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Content", self, VALUE_TYPE.text, "")); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); content = ""; diff --git a/scripts/node_curve/node_curve.gml b/scripts/node_curve/node_curve.gml index 9926f6575..49ada3b89 100644 --- a/scripts/node_curve/node_curve.gml +++ b/scripts/node_curve/node_curve.gml @@ -25,7 +25,7 @@ function Node_Curve(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(11, nodeValue("Alpha", self, CONNECT_TYPE.input, VALUE_TYPE.curve, CURVE_DEF_01)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, 8, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_curve_hsv/node_curve_hsv.gml b/scripts/node_curve_hsv/node_curve_hsv.gml index 18dcb54af..8751cc3fe 100644 --- a/scripts/node_curve_hsv/node_curve_hsv.gml +++ b/scripts/node_curve_hsv/node_curve_hsv.gml @@ -21,7 +21,7 @@ function Node_Curve_HSV(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) __init_mask_modifier(4); // inputs 8, 9, - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 6, 7, ["Surfaces", true], 0, 4, 5, 8, 9, diff --git a/scripts/node_data/node_data.gml b/scripts/node_data/node_data.gml index 2a9071a79..c5f9c2123 100644 --- a/scripts/node_data/node_data.gml +++ b/scripts/node_data/node_data.gml @@ -585,7 +585,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { /////========== JUNCTIONS ========== - static newInput = function(index, junction) { inputs[index] = junction; return junction; } + static newInput = function(index, junction) { inputs[index] = junction; return junction; } + static newOutput = function(index, junction) { outputs[index] = junction; return junction; } static getInputJunctionIndex = function(index) { INLINE diff --git a/scripts/node_de_corner/node_de_corner.gml b/scripts/node_de_corner/node_de_corner.gml index 2d2351c38..9776744e9 100644 --- a/scripts/node_de_corner/node_de_corner.gml +++ b/scripts/node_de_corner/node_de_corner.gml @@ -22,7 +22,7 @@ function Node_De_Corner(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(9, nodeValue_Toggle("Include", self, 0b11, { data: [ "Inner", "Side" ] })); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", true], 0, 5, 6, 7, 8, diff --git a/scripts/node_de_stray/node_de_stray.gml b/scripts/node_de_stray/node_de_stray.gml index 62cfe4cc9..62a9137b5 100644 --- a/scripts/node_de_stray/node_de_stray.gml +++ b/scripts/node_de_stray/node_de_stray.gml @@ -22,7 +22,7 @@ function Node_De_Stray(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(9, nodeValue_Bool("Fill Empty", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 2, ["Surfaces", true], 0, 5, 6, 7, 8, diff --git a/scripts/node_delay/node_delay.gml b/scripts/node_delay/node_delay.gml index 4b94dd8dd..52a4243b6 100644 --- a/scripts/node_delay/node_delay.gml +++ b/scripts/node_delay/node_delay.gml @@ -9,7 +9,7 @@ function Node_Delay(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(2, nodeValue_Bool("Loop", self, false)); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Delay", false], 1, 2, diff --git a/scripts/node_diffuse/node_diffuse.gml b/scripts/node_diffuse/node_diffuse.gml index 5643f8c7f..8601d9a33 100644 --- a/scripts/node_diffuse/node_diffuse.gml +++ b/scripts/node_diffuse/node_diffuse.gml @@ -29,7 +29,7 @@ function Node_Diffuse(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(11, nodeValue_Rotation("External Direction", self, 0)); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, 6, ["Diffuse", false], 1, diff --git a/scripts/node_dilate/node_dilate.gml b/scripts/node_dilate/node_dilate.gml index 3fb67b6da..d4ba4f399 100644 --- a/scripts/node_dilate/node_dilate.gml +++ b/scripts/node_dilate/node_dilate.gml @@ -38,7 +38,7 @@ function Node_Dilate(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co ////////////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, 8, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_directory_search/node_directory_search.gml b/scripts/node_directory_search/node_directory_search.gml index 3e767774d..e87be82a0 100644 --- a/scripts/node_directory_search/node_directory_search.gml +++ b/scripts/node_directory_search/node_directory_search.gml @@ -35,10 +35,10 @@ function Node_Directory_Search(_x, _y, _group = noone) : Node(_x, _y, _group) co newInput(3, nodeValue_Bool("Recursive", self, false)) - outputs[0] = nodeValue_Output("Outputs", self, VALUE_TYPE.surface, []) + newOutput(0, nodeValue_Output("Outputs", self, VALUE_TYPE.surface, [])) .setVisible(true, true); - outputs[1] = nodeValue_Output("Paths", self, VALUE_TYPE.path, [""]) + newOutput(1, nodeValue_Output("Paths", self, VALUE_TYPE.path, [""])) .setVisible(true, true); attribute_surface_depth(); diff --git a/scripts/node_displace/node_displace.gml b/scripts/node_displace/node_displace.gml index 4efa99fd2..c7c9c26af 100644 --- a/scripts/node_displace/node_displace.gml +++ b/scripts/node_displace/node_displace.gml @@ -60,7 +60,7 @@ If set, then strength value control how many times the effect applies on itself. ["Algorithm", true], 6, 11, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_dither/node_dither.gml b/scripts/node_dither/node_dither.gml index 2d2fd5e6b..0e51e3fd4 100644 --- a/scripts/node_dither/node_dither.gml +++ b/scripts/node_dither/node_dither.gml @@ -52,7 +52,7 @@ function Node_Dither(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(15, nodeValue_Int("Steps", self, 4)) .setDisplay(VALUE_DISPLAY.slider, { range: [2, 16, 0.1] }); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 9, 10, 13, ["Surfaces", true], 0, 7, 8, 11, 12, diff --git a/scripts/node_dll/node_dll.gml b/scripts/node_dll/node_dll.gml index 24277807d..2397e0d1c 100644 --- a/scripts/node_dll/node_dll.gml +++ b/scripts/node_dll/node_dll.gml @@ -10,7 +10,7 @@ function Node_DLL(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(2, nodeValue_Enum_Button("Return type", self, 0, [ "Number", "Buffer" ])); - outputs[0] = nodeValue_Output("Return Value", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Return Value", self, VALUE_TYPE.float, 0)); ext_cache = ""; ext_function = -1; diff --git a/scripts/node_dust/node_dust.gml b/scripts/node_dust/node_dust.gml index 37d9d4f80..a7f46e1d3 100644 --- a/scripts/node_dust/node_dust.gml +++ b/scripts/node_dust/node_dust.gml @@ -81,7 +81,7 @@ function Node_Dust(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(0, nodeValue_Dimension(self)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", false], 0, diff --git a/scripts/node_dynasurf/node_dynasurf.gml b/scripts/node_dynasurf/node_dynasurf.gml index 63e05546e..15ca1347c 100644 --- a/scripts/node_dynasurf/node_dynasurf.gml +++ b/scripts/node_dynasurf/node_dynasurf.gml @@ -5,7 +5,7 @@ function Node_DynaSurf(_x, _y, _group = noone) : Node_Collection(_x, _y, _group) reset_all_child = true; draw_input_overlay = false; - outputs[0] = nodeValue_Output("dynaSurf", self, VALUE_TYPE.dynaSurface, noone); + newOutput(0, nodeValue_Output("dynaSurf", self, VALUE_TYPE.dynaSurface, noone)); custom_input_index = array_length(inputs); custom_output_index = array_length(outputs); diff --git a/scripts/node_dynasurf_in/node_dynasurf_in.gml b/scripts/node_dynasurf_in/node_dynasurf_in.gml index 80f825397..a25e74e27 100644 --- a/scripts/node_dynasurf_in/node_dynasurf_in.gml +++ b/scripts/node_dynasurf_in/node_dynasurf_in.gml @@ -8,7 +8,7 @@ function Node_DynaSurf_In(_x, _y, _group = noone) : Node(_x, _y, _group) constru inParent = undefined; - outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.PCXnode, noone); + newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.PCXnode, noone)); static createInput = function() { #region if(group == noone || !is_struct(group)) return noone; diff --git a/scripts/node_dynasurf_out/node_dynasurf_out.gml b/scripts/node_dynasurf_out/node_dynasurf_out.gml index 254ce2f96..675731d17 100644 --- a/scripts/node_dynasurf_out/node_dynasurf_out.gml +++ b/scripts/node_dynasurf_out/node_dynasurf_out.gml @@ -21,7 +21,7 @@ function Node_DynaSurf_Out(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) co newInput(7, nodeValue("alpha", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone) + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)) .setVisible(false); input_display_list = [ 0, diff --git a/scripts/node_dynasurf_out_height/node_dynasurf_out_height.gml b/scripts/node_dynasurf_out_height/node_dynasurf_out_height.gml index 8a56d2d53..c0db88804 100644 --- a/scripts/node_dynasurf_out_height/node_dynasurf_out_height.gml +++ b/scripts/node_dynasurf_out_height/node_dynasurf_out_height.gml @@ -7,7 +7,7 @@ function Node_DynaSurf_Out_Height(_x, _y, _group = noone) : Node_PCX(_x, _y, _gr newInput(0, nodeValue("Height", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone) + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)) .setVisible(false); input_display_list = [ 0 ]; diff --git a/scripts/node_dynasurf_out_width/node_dynasurf_out_width.gml b/scripts/node_dynasurf_out_width/node_dynasurf_out_width.gml index 9793fb203..e102d6984 100644 --- a/scripts/node_dynasurf_out_width/node_dynasurf_out_width.gml +++ b/scripts/node_dynasurf_out_width/node_dynasurf_out_width.gml @@ -7,7 +7,7 @@ function Node_DynaSurf_Out_Width(_x, _y, _group = noone) : Node_PCX(_x, _y, _gro newInput(0, nodeValue("Width", self, CONNECT_TYPE.input, VALUE_TYPE.PCXnode, noone)); - outputs[0] = nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone) + newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone)) .setVisible(false); input_display_list = [ 0 ]; diff --git a/scripts/node_edge_detect/node_edge_detect.gml b/scripts/node_edge_detect/node_edge_detect.gml index 662a5c511..7e83b9537 100644 --- a/scripts/node_edge_detect/node_edge_detect.gml +++ b/scripts/node_edge_detect/node_edge_detect.gml @@ -25,7 +25,7 @@ function Node_Edge_Detect(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou __init_mask_modifier(3); // inputs 7, 8 - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 5, 6, ["Surfaces", true], 0, 3, 4, 7, 8, diff --git a/scripts/node_edge_shade/node_edge_shade.gml b/scripts/node_edge_shade/node_edge_shade.gml index dee146b12..9338dc1d1 100644 --- a/scripts/node_edge_shade/node_edge_shade.gml +++ b/scripts/node_edge_shade/node_edge_shade.gml @@ -17,7 +17,7 @@ function Node_Edge_Shade(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_equation/node_equation.gml b/scripts/node_equation/node_equation.gml index 62b9315f3..d0a25d310 100644 --- a/scripts/node_equation/node_equation.gml +++ b/scripts/node_equation/node_equation.gml @@ -41,7 +41,7 @@ function Node_Equation(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(0, nodeValue_Text("Equation", self, "")); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, 0)); argument_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { argument_renderer.x = _x; diff --git a/scripts/node_erode/node_erode.gml b/scripts/node_erode/node_erode.gml index 48b541420..872e01dae 100644 --- a/scripts/node_erode/node_erode.gml +++ b/scripts/node_erode/node_erode.gml @@ -35,7 +35,7 @@ function Node_Erode(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con ["Erode", false], 1, 10, 2, 3, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_export/node_export.gml b/scripts/node_export/node_export.gml index 30fd0cb42..5b954ca1c 100644 --- a/scripts/node_export/node_export.gml +++ b/scripts/node_export/node_export.gml @@ -105,7 +105,7 @@ function Node_Export(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(16, nodeValue_Bool("Export on Save", self, false)) - outputs[0] = nodeValue_Output("Preview", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Preview", self, VALUE_TYPE.surface, noone)); template_guide = [ ["%d", "Directory"], diff --git a/scripts/node_feedback_input/node_feedback_input.gml b/scripts/node_feedback_input/node_feedback_input.gml index 53d4a85d0..4defd508e 100644 --- a/scripts/node_feedback_input/node_feedback_input.gml +++ b/scripts/node_feedback_input/node_feedback_input.gml @@ -22,5 +22,5 @@ function Node_Feedback_Input(_x, _y, _group = noone) : Node_Group_Input(_x, _y, outputs[0].getValueDefault(arr); } - outputs[1] = nodeValue_Output("Feedback loop", self, VALUE_TYPE.node, 0).nonForward(); + newOutput(1, nodeValue_Output("Feedback loop", self, VALUE_TYPE.node, 0).nonForward()); } \ No newline at end of file diff --git a/scripts/node_find_pixel/node_find_pixel.gml b/scripts/node_find_pixel/node_find_pixel.gml index 2952602e4..ba907ff14 100644 --- a/scripts/node_find_pixel/node_find_pixel.gml +++ b/scripts/node_find_pixel/node_find_pixel.gml @@ -18,7 +18,7 @@ function Node_Find_Pixel(_x, _y, _group = noone) : Node_Processor(_x, _y, _group // newInput(6, nodeValue_Enum_Button("Axis", self, 1, [ "X", "Y" ])); - outputs[0] = nodeValue_Output("Position", self, VALUE_TYPE.integer, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Position", self, VALUE_TYPE.integer, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); input_display_list = [ 0, diff --git a/scripts/node_flip/node_flip.gml b/scripts/node_flip/node_flip.gml index a641ccf2c..5ff17f0c2 100644 --- a/scripts/node_flip/node_flip.gml +++ b/scripts/node_flip/node_flip.gml @@ -13,7 +13,7 @@ function Node_Flip(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Flip", false], 1, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_flood_fill/node_flood_fill.gml b/scripts/node_flood_fill/node_flood_fill.gml index 320da647c..6469e4c70 100644 --- a/scripts/node_flood_fill/node_flood_fill.gml +++ b/scripts/node_flood_fill/node_flood_fill.gml @@ -24,7 +24,7 @@ function Node_Flood_Fill(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(10, nodeValue_Enum_Scroll("Blend", self, 0, [ "Override", "Multiply" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, ["Surfaces", false], 0, 1, 2, 8, 9, diff --git a/scripts/node_fn/node_fn.gml b/scripts/node_fn/node_fn.gml index cbc41ef82..726b283f3 100644 --- a/scripts/node_fn/node_fn.gml +++ b/scripts/node_fn/node_fn.gml @@ -6,7 +6,7 @@ function Node_Fn(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constr newInput(0, nodeValue_Enum_Scroll("Display", self, 1 , [ "Number", "Graph" ])); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.float, 0)); inl = array_length(inputs); diff --git a/scripts/node_gamma_map/node_gamma_map.gml b/scripts/node_gamma_map/node_gamma_map.gml index b77359620..65de1e07e 100644 --- a/scripts/node_gamma_map/node_gamma_map.gml +++ b/scripts/node_gamma_map/node_gamma_map.gml @@ -10,7 +10,7 @@ function Node_Gamma_Map(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) input_display_list = [ 2, 0, 1, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_glow/node_glow.gml b/scripts/node_glow/node_glow.gml index cb919a367..f7a75cc57 100644 --- a/scripts/node_glow/node_glow.gml +++ b/scripts/node_glow/node_glow.gml @@ -36,7 +36,7 @@ function Node_Glow(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Render", false], 4, 11, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_gradient/node_gradient.gml b/scripts/node_gradient/node_gradient.gml index 624f69a01..d04df3ebe 100644 --- a/scripts/node_gradient/node_gradient.gml +++ b/scripts/node_gradient/node_gradient.gml @@ -53,7 +53,7 @@ function Node_Gradient(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", true], 0, 8, diff --git a/scripts/node_gradient_extract/node_gradient_extract.gml b/scripts/node_gradient_extract/node_gradient_extract.gml index 0a5cf51d6..079dd780f 100644 --- a/scripts/node_gradient_extract/node_gradient_extract.gml +++ b/scripts/node_gradient_extract/node_gradient_extract.gml @@ -6,13 +6,13 @@ function Node_Gradient_Extract(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(0, nodeValue_Gradient("Gradient", self, new gradientObject(cola(c_white)))) .setVisible(true, true); - outputs[0] = nodeValue_Output("Colors", self, VALUE_TYPE.color, [] ) + newOutput(0, nodeValue_Output("Colors", self, VALUE_TYPE.color, [] )) .setDisplay(VALUE_DISPLAY.palette); - outputs[1] = nodeValue_Output("Positions", self, VALUE_TYPE.float, [] ); + newOutput(1, nodeValue_Output("Positions", self, VALUE_TYPE.float, [] )); outputs[1].array_depth = 1; - outputs[2] = nodeValue_Output("Type", self, VALUE_TYPE.integer, 0 ); + newOutput(2, nodeValue_Output("Type", self, VALUE_TYPE.integer, 0 )); static processData = function(_outSurf, _data, _output_index, _array_index) { var gra = _data[0]; diff --git a/scripts/node_gradient_out/node_gradient_out.gml b/scripts/node_gradient_out/node_gradient_out.gml index 8dadfc9eb..fca894dfc 100644 --- a/scripts/node_gradient_out/node_gradient_out.gml +++ b/scripts/node_gradient_out/node_gradient_out.gml @@ -9,9 +9,9 @@ function Node_Gradient_Out(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro .setDisplay(VALUE_DISPLAY.slider) .rejectArray(); - outputs[0] = nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) ); + newOutput(0, nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) )); - outputs[1] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_white); + newOutput(1, nodeValue_Output("Color", self, VALUE_TYPE.color, c_white)); _pal = -1; diff --git a/scripts/node_gradient_palette/node_gradient_palette.gml b/scripts/node_gradient_palette/node_gradient_palette.gml index 4788d8ed4..0bb8312f3 100644 --- a/scripts/node_gradient_palette/node_gradient_palette.gml +++ b/scripts/node_gradient_palette/node_gradient_palette.gml @@ -13,7 +13,7 @@ function Node_Gradient_Palette(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(3, nodeValue_Enum_Button("Interpolation", self, 1, [ "None", "RGB", "HSV", "OKLAB", "sRGB" ])); - outputs[0] = nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) ) + newOutput(0, nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) )) _pal = -1; diff --git a/scripts/node_gradient_points/node_gradient_points.gml b/scripts/node_gradient_points/node_gradient_points.gml index d2d6c6ea5..37f8e3b83 100644 --- a/scripts/node_gradient_points/node_gradient_points.gml +++ b/scripts/node_gradient_points/node_gradient_points.gml @@ -37,7 +37,7 @@ function Node_Gradient_Points(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(15, nodeValue_Bool("Normalize weight", self, false )) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", true], 0, diff --git a/scripts/node_gradient_replace_color/node_gradient_replace_color.gml b/scripts/node_gradient_replace_color/node_gradient_replace_color.gml index 6062e33ee..4cfa37a36 100644 --- a/scripts/node_gradient_replace_color/node_gradient_replace_color.gml +++ b/scripts/node_gradient_replace_color/node_gradient_replace_color.gml @@ -12,7 +12,7 @@ function Node_Gradient_Replace_Color(_x, _y, _group = noone) : Node_Processor(_x newInput(3, nodeValue_Float("Threshold", self, 0.1)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) ); + newOutput(0, nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) )); static processData = function(_outSurf, _data, _output_index, _array_index) { #region var gra = _data[0]; diff --git a/scripts/node_gradient_shift/node_gradient_shift.gml b/scripts/node_gradient_shift/node_gradient_shift.gml index fbad65f07..7c775012a 100644 --- a/scripts/node_gradient_shift/node_gradient_shift.gml +++ b/scripts/node_gradient_shift/node_gradient_shift.gml @@ -13,7 +13,7 @@ function Node_Gradient_Shift(_x, _y, _group = noone) : Node_Processor(_x, _y, _g newInput(3, nodeValue_Float("Scale", self, 1)) .setDisplay(VALUE_DISPLAY.slider, { range: [0, 2, 0.01] }); - outputs[0] = nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) ); + newOutput(0, nodeValue_Output("Gradient", self, VALUE_TYPE.gradient, new gradientObject(cola(c_white)) )); _pal = -1; diff --git a/scripts/node_grain/node_grain.gml b/scripts/node_grain/node_grain.gml index 6e8e39e30..0ddee0e16 100644 --- a/scripts/node_grain/node_grain.gml +++ b/scripts/node_grain/node_grain.gml @@ -79,7 +79,7 @@ function Node_Grain(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con ["HSV", false], 24, /**/ 16, 17, 18, 19, 20, 21, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_grey_alpha/node_grey_alpha.gml b/scripts/node_grey_alpha/node_grey_alpha.gml index aa24d698b..704791bda 100644 --- a/scripts/node_grey_alpha/node_grey_alpha.gml +++ b/scripts/node_grey_alpha/node_grey_alpha.gml @@ -10,7 +10,7 @@ function Node_Grey_Alpha(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(3, nodeValue_Bool("Active", self, true)); active_index = 3; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, 0, ["Replace Color", false, 1], 2, diff --git a/scripts/node_greyscale/node_greyscale.gml b/scripts/node_greyscale/node_greyscale.gml index 9c8b1e90b..c03c083f5 100644 --- a/scripts/node_greyscale/node_greyscale.gml +++ b/scripts/node_greyscale/node_greyscale.gml @@ -34,7 +34,7 @@ function Node_Greyscale(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Greyscale", false], 1, 9, 2, 10, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_grid/node_grid.gml b/scripts/node_grid/node_grid.gml index 98c25db41..89a6665b0 100644 --- a/scripts/node_grid/node_grid.gml +++ b/scripts/node_grid/node_grid.gml @@ -83,7 +83,7 @@ function Node_Grid(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Truchet", true, 17], 18, 19, 22, 23, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_grid_hex/node_grid_hex.gml b/scripts/node_grid_hex/node_grid_hex.gml index 2d1f387dd..fd3e6577a 100644 --- a/scripts/node_grid_hex/node_grid_hex.gml +++ b/scripts/node_grid_hex/node_grid_hex.gml @@ -68,7 +68,7 @@ function Node_Grid_Hex(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Truchet", true, 14], 15, 16, 19, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_grid_noise/node_grid_noise.gml b/scripts/node_grid_noise/node_grid_noise.gml index d28537ea5..90e4792ee 100644 --- a/scripts/node_grid_noise/node_grid_noise.gml +++ b/scripts/node_grid_noise/node_grid_noise.gml @@ -32,7 +32,7 @@ function Node_Grid_Noise(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Render", false], 5, 7, 8, 9, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_grid_pentagonal/node_grid_pentagonal.gml b/scripts/node_grid_pentagonal/node_grid_pentagonal.gml index dae18cfcd..70ec8d5c3 100644 --- a/scripts/node_grid_pentagonal/node_grid_pentagonal.gml +++ b/scripts/node_grid_pentagonal/node_grid_pentagonal.gml @@ -54,7 +54,7 @@ function Node_Grid_Pentagonal(_x, _y, _group = noone) : Node_Processor(_x, _y, _ ["Render", false], 8, 9, 5, 14, 6, 7, 17, 10, 16, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_grid_tri/node_grid_tri.gml b/scripts/node_grid_tri/node_grid_tri.gml index f67298815..d265e65b2 100644 --- a/scripts/node_grid_tri/node_grid_tri.gml +++ b/scripts/node_grid_tri/node_grid_tri.gml @@ -68,7 +68,7 @@ function Node_Grid_Tri(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Truchet", true, 14], 15, 16, 19, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_group_input/node_group_input.gml b/scripts/node_group_input/node_group_input.gml index e0d14d977..845b4cb21 100644 --- a/scripts/node_group_input/node_group_input.gml +++ b/scripts/node_group_input/node_group_input.gml @@ -127,7 +127,7 @@ function Node_Group_Input(_x, _y, _group = noone) : Node(_x, _y, _group) constru ["Data", false], 2, 0, 4, 1, 7, 3, 8, ]; - outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.any, 0) + newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.any, 0)) .uncache(); attributes.inherit_name = true; diff --git a/scripts/node_herringbone_tile/node_herringbone_tile.gml b/scripts/node_herringbone_tile/node_herringbone_tile.gml index 4a9c8f7b1..d815adeaf 100644 --- a/scripts/node_herringbone_tile/node_herringbone_tile.gml +++ b/scripts/node_herringbone_tile/node_herringbone_tile.gml @@ -68,7 +68,7 @@ function Node_Herringbone_Tile(_x, _y, _group = noone) : Node_Processor(_x, _y, ["Truchet", true, 14], 15, 16, 20, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_hlsl/node_hlsl.gml b/scripts/node_hlsl/node_hlsl.gml index 5d3439f33..a83f8b025 100644 --- a/scripts/node_hlsl/node_hlsl.gml +++ b/scripts/node_hlsl/node_hlsl.gml @@ -32,7 +32,7 @@ output.color = surfaceColor;")) newInput(2, nodeValue_Surface("Base Texture", self)); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone ); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone )); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_hsv_channel/node_hsv_channel.gml b/scripts/node_hsv_channel/node_hsv_channel.gml index fd7abbb37..e2c9d0e34 100644 --- a/scripts/node_hsv_channel/node_hsv_channel.gml +++ b/scripts/node_hsv_channel/node_hsv_channel.gml @@ -6,10 +6,10 @@ function Node_HSV_Channel(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(1, nodeValue_Bool("Output Array", self, false)); - outputs[0] = nodeValue_Output("Hue", self, VALUE_TYPE.surface, noone); - outputs[1] = nodeValue_Output("Saturation", self, VALUE_TYPE.surface, noone); - outputs[2] = nodeValue_Output("Value", self, VALUE_TYPE.surface, noone); - outputs[3] = nodeValue_Output("Alpha", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Hue", self, VALUE_TYPE.surface, noone)); + newOutput(1, nodeValue_Output("Saturation", self, VALUE_TYPE.surface, noone)); + newOutput(2, nodeValue_Output("Value", self, VALUE_TYPE.surface, noone)); + newOutput(3, nodeValue_Output("Alpha", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_http_request/node_http_request.gml b/scripts/node_http_request/node_http_request.gml index 601a347c9..447e67042 100644 --- a/scripts/node_http_request/node_http_request.gml +++ b/scripts/node_http_request/node_http_request.gml @@ -8,7 +8,7 @@ function Node_HTTP_request(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(2, nodeValue_Text("Content", self, "")) - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.text, "")); address_domain = ""; diff --git a/scripts/node_image/node_image.gml b/scripts/node_image/node_image.gml index fe4e76a16..db4ddf628 100644 --- a/scripts/node_image/node_image.gml +++ b/scripts/node_image/node_image.gml @@ -31,8 +31,8 @@ function Node_Image(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(1, nodeValue_Padding("Padding", self, [0, 0, 0, 0])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); attribute_surface_depth(); diff --git a/scripts/node_image_animated/node_image_animated.gml b/scripts/node_image_animated/node_image_animated.gml index 90393c166..dbc769fba 100644 --- a/scripts/node_image_animated/node_image_animated.gml +++ b/scripts/node_image_animated/node_image_animated.gml @@ -66,7 +66,7 @@ function Node_Image_Animated(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(8, nodeValue_Enum_Scroll("Canvas size", self, 2, [ "First", "Minimum", "Maximum" ])) .rejectArray(); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Image", false], 0, 1, 8, diff --git a/scripts/node_image_gif/node_image_gif.gml b/scripts/node_image_gif/node_image_gif.gml index 0ac8a0497..4cee4e006 100644 --- a/scripts/node_image_gif/node_image_gif.gml +++ b/scripts/node_image_gif/node_image_gif.gml @@ -53,8 +53,8 @@ function Node_Image_gif(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(7, nodeValue_Float("Animation speed", self, 1)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); input_display_list = [ diff --git a/scripts/node_image_grid/node_image_grid.gml b/scripts/node_image_grid/node_image_grid.gml index e916af334..94024cacf 100644 --- a/scripts/node_image_grid/node_image_grid.gml +++ b/scripts/node_image_grid/node_image_grid.gml @@ -15,9 +15,9 @@ function Node_Image_Grid(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(3, nodeValue_Padding("Padding", self, [ 0, 0, 0, 0 ])) .rejectArray(); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, []); + newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, [])); temp_surface = [ noone, noone ]; diff --git a/scripts/node_image_sequence/node_image_sequence.gml b/scripts/node_image_sequence/node_image_sequence.gml index a0f8dc32a..8c6997de7 100644 --- a/scripts/node_image_sequence/node_image_sequence.gml +++ b/scripts/node_image_sequence/node_image_sequence.gml @@ -55,8 +55,8 @@ function Node_Image_Sequence(_x, _y, _group = noone) : Node(_x, _y, _group) cons ["Array settings", false], 0, 1, 2, 3 ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, []); - outputs[1] = nodeValue_Output("Paths", self, VALUE_TYPE.path, [] ). + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, [])); + newOutput(1, nodeValue_Output("Paths", self, VALUE_TYPE.path, [] )). setVisible(true, true); attribute_surface_depth(); diff --git a/scripts/node_image_sheet/node_image_sheet.gml b/scripts/node_image_sheet/node_image_sheet.gml index 150ac664c..5c6437a38 100644 --- a/scripts/node_image_sheet/node_image_sheet.gml +++ b/scripts/node_image_sheet/node_image_sheet.gml @@ -64,9 +64,9 @@ function Node_Image_Sheet(_x, _y, _group = noone) : Node(_x, _y, _group) constru ["Filter Empty", true, 12], 13, 14, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas Data", self, VALUE_TYPE.surface, []) + newOutput(1, nodeValue_Output("Atlas Data", self, VALUE_TYPE.surface, [])) .setArrayDepth(1); attribute_surface_depth(); diff --git a/scripts/node_interlaced/node_interlaced.gml b/scripts/node_interlaced/node_interlaced.gml index 72987a09e..039ca0ad8 100644 --- a/scripts/node_interlaced/node_interlaced.gml +++ b/scripts/node_interlaced/node_interlaced.gml @@ -29,7 +29,7 @@ function Node_Interlaced(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(11, nodeValue_Bool("Loop", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surface", false], 0, 2, 3, 4, diff --git a/scripts/node_interpret_number/node_interpret_number.gml b/scripts/node_interpret_number/node_interpret_number.gml index d08caa57a..927b8a134 100644 --- a/scripts/node_interpret_number/node_interpret_number.gml +++ b/scripts/node_interpret_number/node_interpret_number.gml @@ -21,7 +21,7 @@ function Node_Interpret_Number(_x, _y, _group = noone) : Node_Processor(_x, _y, ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Interpret", false], 1, 2, 3, 4, diff --git a/scripts/node_invert/node_invert.gml b/scripts/node_invert/node_invert.gml index 2095b5296..7804c9494 100644 --- a/scripts/node_invert/node_invert.gml +++ b/scripts/node_invert/node_invert.gml @@ -21,7 +21,7 @@ function Node_Invert(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co ["Surfaces", true], 0, 1, 2, 5, 6, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_isosurf/node_isosurf.gml b/scripts/node_isosurf/node_isosurf.gml index 1f03ca3d9..cada9a18c 100644 --- a/scripts/node_isosurf/node_isosurf.gml +++ b/scripts/node_isosurf/node_isosurf.gml @@ -17,7 +17,7 @@ function Node_IsoSurf(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(4, nodeValue_Vector("Offsets", self, [])) .setArrayDepth(1); - outputs[0] = nodeValue_Output("IsoSurf", self, VALUE_TYPE.dynaSurface, noone); + newOutput(0, nodeValue_Output("IsoSurf", self, VALUE_TYPE.dynaSurface, noone)); knob_select = noone; knob_hover = noone; diff --git a/scripts/node_iterate_each/node_iterate_each.gml b/scripts/node_iterate_each/node_iterate_each.gml index 9dda74de2..85cc4c314 100644 --- a/scripts/node_iterate_each/node_iterate_each.gml +++ b/scripts/node_iterate_each/node_iterate_each.gml @@ -4,7 +4,7 @@ function Node_Iterate_Each(_x, _y, _group = noone) : Node_Iterator(_x, _y, _grou newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, [] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, [] ); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, [] )); custom_input_index = array_length(inputs); custom_output_index = array_length(inputs); diff --git a/scripts/node_iterate_filter/node_iterate_filter.gml b/scripts/node_iterate_filter/node_iterate_filter.gml index 40468abd5..fffb1472d 100644 --- a/scripts/node_iterate_filter/node_iterate_filter.gml +++ b/scripts/node_iterate_filter/node_iterate_filter.gml @@ -4,7 +4,7 @@ function Node_Iterate_Filter(_x, _y, _group = noone) : Node_Iterator(_x, _y, _gr newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, [] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, noone ); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, noone )); custom_input_index = array_length(inputs); custom_output_index = array_length(inputs); diff --git a/scripts/node_iterate_sort/node_iterate_sort.gml b/scripts/node_iterate_sort/node_iterate_sort.gml index 41be1995f..e0d16a84a 100644 --- a/scripts/node_iterate_sort/node_iterate_sort.gml +++ b/scripts/node_iterate_sort/node_iterate_sort.gml @@ -9,7 +9,7 @@ function Node_Iterate_Sort(_x, _y, _group = noone) : Node_Collection(_x, _y, _gr newInput(0, nodeValue("Array", self, CONNECT_TYPE.input, VALUE_TYPE.any, [] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array", self, VALUE_TYPE.any, noone ); + newOutput(0, nodeValue_Output("Array", self, VALUE_TYPE.any, noone )); topoList = []; diff --git a/scripts/node_iterator_each_inline_input/node_iterator_each_inline_input.gml b/scripts/node_iterator_each_inline_input/node_iterator_each_inline_input.gml index a1b496c41..f62b849ee 100644 --- a/scripts/node_iterator_each_inline_input/node_iterator_each_inline_input.gml +++ b/scripts/node_iterator_each_inline_input/node_iterator_each_inline_input.gml @@ -11,7 +11,7 @@ function Node_Iterator_Each_Inline_Input(_x, _y, _group = noone) : Node(_x, _y, newInput(0, nodeValue("Array in", self, CONNECT_TYPE.input, VALUE_TYPE.any, [] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 ); + newOutput(0, nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 )); static onGetPreviousNodes = function(arr) { array_push(arr, loop); diff --git a/scripts/node_iterator_each_inline_output/node_iterator_each_inline_output.gml b/scripts/node_iterator_each_inline_output/node_iterator_each_inline_output.gml index 65ad24ba4..efe8188ec 100644 --- a/scripts/node_iterator_each_inline_output/node_iterator_each_inline_output.gml +++ b/scripts/node_iterator_each_inline_output/node_iterator_each_inline_output.gml @@ -11,7 +11,7 @@ function Node_Iterator_Each_Inline_Output(_x, _y, _group = noone) : Node(_x, _y, newInput(0, nodeValue("Value out", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0 )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array out", self, VALUE_TYPE.any, [] ); + newOutput(0, nodeValue_Output("Array out", self, VALUE_TYPE.any, [] )); static getNextNodes = function() { #region if(loop.bypassNextNode()) diff --git a/scripts/node_iterator_each_input/node_iterator_each_input.gml b/scripts/node_iterator_each_input/node_iterator_each_input.gml index 1a476b0d5..6a0cb06c4 100644 --- a/scripts/node_iterator_each_input/node_iterator_each_input.gml +++ b/scripts/node_iterator_each_input/node_iterator_each_input.gml @@ -5,7 +5,7 @@ function Node_Iterator_Each_Input(_x, _y, _group = noone) : Node(_x, _y, _group) manual_deletable = false; - outputs[0] = nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 ); + newOutput(0, nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 )); outputs[0].getValueDefault = method(outputs[0], outputs[0].getValueRecursive); //Get value from outside loop diff --git a/scripts/node_iterator_each_output/node_iterator_each_output.gml b/scripts/node_iterator_each_output/node_iterator_each_output.gml index e01f956d6..f537d9a29 100644 --- a/scripts/node_iterator_each_output/node_iterator_each_output.gml +++ b/scripts/node_iterator_each_output/node_iterator_each_output.gml @@ -8,7 +8,7 @@ function Node_Iterator_Each_Output(_x, _y, _group = noone) : Node(_x, _y, _group newInput(0, nodeValue("Value out", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0 )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Preview", self, VALUE_TYPE.any, 0 ) + newOutput(0, nodeValue_Output("Preview", self, VALUE_TYPE.any, 0 )) .setVisible(false, false); static getNextNodes = function() { #region diff --git a/scripts/node_iterator_each_size/node_iterator_each_size.gml b/scripts/node_iterator_each_size/node_iterator_each_size.gml index 7bdd82831..03810a158 100644 --- a/scripts/node_iterator_each_size/node_iterator_each_size.gml +++ b/scripts/node_iterator_each_size/node_iterator_each_size.gml @@ -5,7 +5,7 @@ function Node_Iterator_Each_Length(_x, _y, _group = noone) : Node(_x, _y, _group setDimension(96, 48); - outputs[0] = nodeValue_Output("Length", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Length", self, VALUE_TYPE.integer, 0)); static update = function(frame = CURRENT_FRAME) { if(!variable_struct_exists(group, "iterated")) return; diff --git a/scripts/node_iterator_filter_inline_input/node_iterator_filter_inline_input.gml b/scripts/node_iterator_filter_inline_input/node_iterator_filter_inline_input.gml index 00243fcbb..2f67a92da 100644 --- a/scripts/node_iterator_filter_inline_input/node_iterator_filter_inline_input.gml +++ b/scripts/node_iterator_filter_inline_input/node_iterator_filter_inline_input.gml @@ -11,7 +11,7 @@ function Node_Iterator_Filter_Inline_Input(_x, _y, _group = noone) : Node(_x, _y newInput(0, nodeValue("Array in", self, CONNECT_TYPE.input, VALUE_TYPE.any, [] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 ); + newOutput(0, nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 )); static onGetPreviousNodes = function(arr) { array_push(arr, loop); diff --git a/scripts/node_iterator_filter_inline_output/node_iterator_filter_inline_output.gml b/scripts/node_iterator_filter_inline_output/node_iterator_filter_inline_output.gml index ebddcd9c1..f22caaa1d 100644 --- a/scripts/node_iterator_filter_inline_output/node_iterator_filter_inline_output.gml +++ b/scripts/node_iterator_filter_inline_output/node_iterator_filter_inline_output.gml @@ -14,7 +14,7 @@ function Node_Iterator_Filter_Inline_Output(_x, _y, _group = noone) : Node(_x, _ newInput(1, nodeValue_Bool("Filter result", self, false )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array out", self, VALUE_TYPE.any, [] ); + newOutput(0, nodeValue_Output("Array out", self, VALUE_TYPE.any, [] )); static getNextNodes = function() { #region if(loop.bypassNextNode()) diff --git a/scripts/node_iterator_filter_input/node_iterator_filter_input.gml b/scripts/node_iterator_filter_input/node_iterator_filter_input.gml index 88b0906fa..08680d51f 100644 --- a/scripts/node_iterator_filter_input/node_iterator_filter_input.gml +++ b/scripts/node_iterator_filter_input/node_iterator_filter_input.gml @@ -5,7 +5,7 @@ function Node_Iterator_Filter_Input(_x, _y, _group = noone) : Node(_x, _y, _grou manual_deletable = false; - outputs[0] = nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 ); + newOutput(0, nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 )); outputs[0].getValueDefault = method(outputs[0], outputs[0].getValueRecursive); //Get value from outside loop outputs[0].getValueRecursive = function(arr) { #region if(!variable_struct_exists(group, "iterated")) diff --git a/scripts/node_iterator_index/node_iterator_index.gml b/scripts/node_iterator_index/node_iterator_index.gml index b497e0de9..da1579685 100644 --- a/scripts/node_iterator_index/node_iterator_index.gml +++ b/scripts/node_iterator_index/node_iterator_index.gml @@ -6,7 +6,7 @@ function Node_Iterator_Index(_x, _y, _group = noone) : Node(_x, _y, _group) cons setDimension(96, 48); - outputs[0] = nodeValue_Output("Loop index", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Loop index", self, VALUE_TYPE.integer, 0)); static update = function(frame = CURRENT_FRAME) { #region var gr = is_instanceof(group, Node_Iterator)? group : noone; diff --git a/scripts/node_iterator_input/node_iterator_input.gml b/scripts/node_iterator_input/node_iterator_input.gml index cc0ff5e12..4b2b0cd75 100644 --- a/scripts/node_iterator_input/node_iterator_input.gml +++ b/scripts/node_iterator_input/node_iterator_input.gml @@ -36,6 +36,6 @@ function Node_Iterator_Input(_x, _y, _group = noone) : Node_Group_Input(_x, _y, arr[@ 1] = inParent; } - outputs[1] = nodeValue_Output("Loop entrance", self, VALUE_TYPE.node, 0) + newOutput(1, nodeValue_Output("Loop entrance", self, VALUE_TYPE.node, 0)) .nonForward(); } \ No newline at end of file diff --git a/scripts/node_iterator_length/node_iterator_length.gml b/scripts/node_iterator_length/node_iterator_length.gml index 75ce79262..ea8482806 100644 --- a/scripts/node_iterator_length/node_iterator_length.gml +++ b/scripts/node_iterator_length/node_iterator_length.gml @@ -5,7 +5,7 @@ function Node_Iterator_Length(_x, _y, _group = noone) : Node(_x, _y, _group) con manual_ungroupable = false; setDimension(96, 48); - outputs[0] = nodeValue_Output("Length", self, VALUE_TYPE.integer, 0); + newOutput(0, nodeValue_Output("Length", self, VALUE_TYPE.integer, 0)); static update = function(frame = CURRENT_FRAME) { #region var gr = is_instanceof(group, Node_Iterator)? group : noone; diff --git a/scripts/node_iterator_sort_inline_input/node_iterator_sort_inline_input.gml b/scripts/node_iterator_sort_inline_input/node_iterator_sort_inline_input.gml index fa638b366..2c8f71b8c 100644 --- a/scripts/node_iterator_sort_inline_input/node_iterator_sort_inline_input.gml +++ b/scripts/node_iterator_sort_inline_input/node_iterator_sort_inline_input.gml @@ -11,9 +11,9 @@ function Node_Iterator_Sort_Inline_Input(_x, _y, _group = noone) : Node(_x, _y, newInput(0, nodeValue("Array in", self, CONNECT_TYPE.input, VALUE_TYPE.any, [] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Value 1", self, VALUE_TYPE.any, 0 ); + newOutput(0, nodeValue_Output("Value 1", self, VALUE_TYPE.any, 0 )); - outputs[1] = nodeValue_Output("Value 2", self, VALUE_TYPE.any, 0 ); + newOutput(1, nodeValue_Output("Value 2", self, VALUE_TYPE.any, 0 )); startSort = false; diff --git a/scripts/node_iterator_sort_inline_output/node_iterator_sort_inline_output.gml b/scripts/node_iterator_sort_inline_output/node_iterator_sort_inline_output.gml index 5cc4dbd8e..2076596f6 100644 --- a/scripts/node_iterator_sort_inline_output/node_iterator_sort_inline_output.gml +++ b/scripts/node_iterator_sort_inline_output/node_iterator_sort_inline_output.gml @@ -11,5 +11,5 @@ function Node_Iterator_Sort_Inline_Output(_x, _y, _group = noone) : Node(_x, _y, newInput(0, nodeValue_Bool("Swap", self, false )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Array out", self, VALUE_TYPE.any, [] ); + newOutput(0, nodeValue_Output("Array out", self, VALUE_TYPE.any, [] )); } \ No newline at end of file diff --git a/scripts/node_iterator_sort_input/node_iterator_sort_input.gml b/scripts/node_iterator_sort_input/node_iterator_sort_input.gml index ba4cba5af..bc9bc6101 100644 --- a/scripts/node_iterator_sort_input/node_iterator_sort_input.gml +++ b/scripts/node_iterator_sort_input/node_iterator_sort_input.gml @@ -7,7 +7,7 @@ function Node_Iterator_Sort_Input(_x, _y, _group = noone) : Node(_x, _y, _group) newInput(0, nodeValue("Value in", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0 )) .setVisible(false, false); - outputs[0] = nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 ); + newOutput(0, nodeValue_Output("Value in", self, VALUE_TYPE.any, 0 )); attributes.sort_inputs = 0; diff --git a/scripts/node_jpeg/node_jpeg.gml b/scripts/node_jpeg/node_jpeg.gml index 18563ebb3..165c1b15d 100644 --- a/scripts/node_jpeg/node_jpeg.gml +++ b/scripts/node_jpeg/node_jpeg.gml @@ -31,7 +31,7 @@ function Node_JPEG(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(13, nodeValue_Bool("Reconstruct All", self, false)) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surface", false], 0, 5, 6, 7, diff --git a/scripts/node_json_file_read/node_json_file_read.gml b/scripts/node_json_file_read/node_json_file_read.gml index 624bd4333..dc925e0ab 100644 --- a/scripts/node_json_file_read/node_json_file_read.gml +++ b/scripts/node_json_file_read/node_json_file_read.gml @@ -33,10 +33,10 @@ function Node_Json_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) cons .setDisplay(VALUE_DISPLAY.path_load, { filter: "JSON file|*.json" }) .rejectArray(); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); - outputs[1] = nodeValue_Output("Struct", self, VALUE_TYPE.struct, {}); + newOutput(1, nodeValue_Output("Struct", self, VALUE_TYPE.struct, {})); content = {}; path_current = ""; diff --git a/scripts/node_kuwahara/node_kuwahara.gml b/scripts/node_kuwahara/node_kuwahara.gml index 2b8b63540..4d0b0207a 100644 --- a/scripts/node_kuwahara/node_kuwahara.gml +++ b/scripts/node_kuwahara/node_kuwahara.gml @@ -21,7 +21,7 @@ function Node_Kuwahara(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) __init_mask_modifier(3); // inputs 7, 8 - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", true], 0, 3, 4, 7, 8, diff --git a/scripts/node_lerp/node_lerp.gml b/scripts/node_lerp/node_lerp.gml index 50299d7a4..048477565 100644 --- a/scripts/node_lerp/node_lerp.gml +++ b/scripts/node_lerp/node_lerp.gml @@ -8,7 +8,7 @@ function Node_Lerp(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(1, nodeValue_Float("b", self, 0)); newInput(2, nodeValue_Slider_Range("Progress", self, 0)); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, 0)); static processData = function(_output, _data, _output_index, _array_index = 0) { return lerp(_data[0], _data[1], _data[2]); diff --git a/scripts/node_level/node_level.gml b/scripts/node_level/node_level.gml index 646932c8e..4f00470cb 100644 --- a/scripts/node_level/node_level.gml +++ b/scripts/node_level/node_level.gml @@ -35,7 +35,7 @@ function Node_Level(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(16, nodeValue_Slider_Range("Alpha out", self, [0, 1])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_level_selector/node_level_selector.gml b/scripts/node_level_selector/node_level_selector.gml index b984f489d..4510680ff 100644 --- a/scripts/node_level_selector/node_level_selector.gml +++ b/scripts/node_level_selector/node_level_selector.gml @@ -33,7 +33,7 @@ function Node_Level_Selector(_x, _y, _group = noone) : Node_Processor(_x, _y, _g newInput(11, nodeValue_Bool("Keep Original", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_line/node_line.gml b/scripts/node_line/node_line.gml index 4d14a880a..72acd521b 100644 --- a/scripts/node_line/node_line.gml +++ b/scripts/node_line/node_line.gml @@ -80,9 +80,9 @@ function Node_Line(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Texture", false], 18, 21, 22, 23, 29, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Width Pass", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Width Pass", self, VALUE_TYPE.surface, noone)); lines = []; line_data = []; diff --git a/scripts/node_local_analyze/node_local_analyze.gml b/scripts/node_local_analyze/node_local_analyze.gml index cf7efb129..44b58bb52 100644 --- a/scripts/node_local_analyze/node_local_analyze.gml +++ b/scripts/node_local_analyze/node_local_analyze.gml @@ -27,7 +27,7 @@ function Node_Local_Analyze(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr __init_mask_modifier(5); // inputs 9, 10 - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, 8, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_logic/node_logic.gml b/scripts/node_logic/node_logic.gml index b3eda59d5..f00ff0675 100644 --- a/scripts/node_logic/node_logic.gml +++ b/scripts/node_logic/node_logic.gml @@ -40,7 +40,7 @@ function Node_Logic(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { new scrollItem("Xor", s_node_logic, 5), ])) .rejectArray(); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.boolean, false); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.boolean, false)); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_lovify/node_lovify.gml b/scripts/node_lovify/node_lovify.gml index 7d831d634..fed42564a 100644 --- a/scripts/node_lovify/node_lovify.gml +++ b/scripts/node_lovify/node_lovify.gml @@ -13,7 +13,7 @@ function Node_Lovify(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(3, nodeValue_Float("Distribution", self, 0.1 )) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_lua_compute/node_lua_compute.gml b/scripts/node_lua_compute/node_lua_compute.gml index 2d3133383..a2078447e 100644 --- a/scripts/node_lua_compute/node_lua_compute.gml +++ b/scripts/node_lua_compute/node_lua_compute.gml @@ -14,9 +14,9 @@ function Node_Lua_Compute(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(4, nodeValue_Bool("Execute on frame", self, true)) - outputs[0] = nodeValue_Output("Execution thread", self, VALUE_TYPE.node, noone ); + newOutput(0, nodeValue_Output("Execution thread", self, VALUE_TYPE.node, noone )); - outputs[1] = nodeValue_Output("Return value", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Return value", self, VALUE_TYPE.surface, noone)); argumentRenderer(global.lua_arguments); diff --git a/scripts/node_lua_global/node_lua_global.gml b/scripts/node_lua_global/node_lua_global.gml index 3ca3a84ec..83e5746e8 100644 --- a/scripts/node_lua_global/node_lua_global.gml +++ b/scripts/node_lua_global/node_lua_global.gml @@ -10,7 +10,7 @@ function Node_Lua_Global(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(2, nodeValue("Execution thread", self, CONNECT_TYPE.input, VALUE_TYPE.node, noone)) .setVisible(false, true); - outputs[0] = nodeValue_Output("Execution thread", self, VALUE_TYPE.node, noone ); + newOutput(0, nodeValue_Output("Execution thread", self, VALUE_TYPE.node, noone )); input_display_list = [ ["Main", false], 2, 1, 0, diff --git a/scripts/node_lua_surface/node_lua_surface.gml b/scripts/node_lua_surface/node_lua_surface.gml index 4269d5f7f..9bd47c39a 100644 --- a/scripts/node_lua_surface/node_lua_surface.gml +++ b/scripts/node_lua_surface/node_lua_surface.gml @@ -15,9 +15,9 @@ function Node_Lua_Surface(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(4, nodeValue_Bool("Execute on frame", self, true)) - outputs[0] = nodeValue_Output("Execution thread", self, VALUE_TYPE.node, noone ); + newOutput(0, nodeValue_Output("Execution thread", self, VALUE_TYPE.node, noone )); - outputs[1] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); argumentRenderer(global.lua_arguments); diff --git a/scripts/node_math/node_math.gml b/scripts/node_math/node_math.gml index afa39ccae..366c03834 100644 --- a/scripts/node_math/node_math.gml +++ b/scripts/node_math/node_math.gml @@ -100,7 +100,7 @@ function Node_Math(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { 0, 1, 2, 5, 3, 4, ] - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, 0)); use_mod = 0; use_deg = false; diff --git a/scripts/node_mesh_create_path/node_mesh_create_path.gml b/scripts/node_mesh_create_path/node_mesh_create_path.gml index b4dddc3f1..d47cab4ec 100644 --- a/scripts/node_mesh_create_path/node_mesh_create_path.gml +++ b/scripts/node_mesh_create_path/node_mesh_create_path.gml @@ -10,7 +10,7 @@ function Node_Mesh_Create_Path(_x, _y, _group = noone) : Node(_x, _y, _group) co newInput(2, nodeValue_Enum_Scroll("Algorithm", self, 0, [ "Ear Clipping", "Convex Fan", "Delaunay" ])); - outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.mesh, noone); + newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.mesh, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var mesh = outputs[0].getValue(); diff --git a/scripts/node_mesh_to_path/node_mesh_to_path.gml b/scripts/node_mesh_to_path/node_mesh_to_path.gml index 62473d01e..f6b420d68 100644 --- a/scripts/node_mesh_to_path/node_mesh_to_path.gml +++ b/scripts/node_mesh_to_path/node_mesh_to_path.gml @@ -6,7 +6,7 @@ function Node_Mesh_To_Path(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(0, nodeValue("Mesh", self, CONNECT_TYPE.input, VALUE_TYPE.mesh, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, noone); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, noone)); segments = []; length = 0; diff --git a/scripts/node_mesh_transform/node_mesh_transform.gml b/scripts/node_mesh_transform/node_mesh_transform.gml index b0fc4e8b3..cc0b3de5c 100644 --- a/scripts/node_mesh_transform/node_mesh_transform.gml +++ b/scripts/node_mesh_transform/node_mesh_transform.gml @@ -13,7 +13,7 @@ function Node_Mesh_Transform(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(4, nodeValue_Vec2("Anchor", self, [ 0, 0 ])); - outputs[0] = nodeValue_Output("Mesh", self, VALUE_TYPE.mesh, noone); + newOutput(0, nodeValue_Output("Mesh", self, VALUE_TYPE.mesh, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var imesh = getInputData(0); diff --git a/scripts/node_mesh_warp/node_mesh_warp.gml b/scripts/node_mesh_warp/node_mesh_warp.gml index 0b954cc9e..16b64b1f5 100644 --- a/scripts/node_mesh_warp/node_mesh_warp.gml +++ b/scripts/node_mesh_warp/node_mesh_warp.gml @@ -183,9 +183,9 @@ function Node_Mesh_Warp(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Mesh data", self, VALUE_TYPE.object, mesh_data); + newOutput(1, nodeValue_Output("Mesh data", self, VALUE_TYPE.object, mesh_data)); input_display_list = [ 5, ["Mesh", false], 0, 8, 9, 1, 7, 3, diff --git a/scripts/node_midi_in/node_midi_in.gml b/scripts/node_midi_in/node_midi_in.gml index dd24b2806..bb682e8cb 100644 --- a/scripts/node_midi_in/node_midi_in.gml +++ b/scripts/node_midi_in/node_midi_in.gml @@ -16,13 +16,13 @@ function Node_MIDI_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(0, nodeValue_Enum_Scroll("Input", self, 0, { data: _miniNames, update_hover: false })) .rejectArray(); - outputs[0] = nodeValue_Output("Raw Message", self, VALUE_TYPE.float, []); + newOutput(0, nodeValue_Output("Raw Message", self, VALUE_TYPE.float, [])); - outputs[1] = nodeValue_Output("Pressing notes", self, VALUE_TYPE.float, []); + newOutput(1, nodeValue_Output("Pressing notes", self, VALUE_TYPE.float, [])); - outputs[2] = nodeValue_Output("Direct values", self, VALUE_TYPE.struct, {}); + newOutput(2, nodeValue_Output("Direct values", self, VALUE_TYPE.struct, {})); - watcher_controllers = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { #region + watcher_controllers = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { var _h = ui(48); var bw = _w / 2 - ui(4); @@ -87,7 +87,7 @@ function Node_MIDI_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor } return _h; - }); #endregion + }); input_display_list = [ 0, ["Watchers", false], watcher_controllers, @@ -102,7 +102,8 @@ function Node_MIDI_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor array_push(inputs, _inp); array_push(inputs, nodeValue("Normalize", self, CONNECT_TYPE.input, VALUE_TYPE.boolean, false )); - array_push(outputs, nodeValue_Output("Value", self, VALUE_TYPE.float, -1 )); + var _out = nodeValue_Output("Value", self, VALUE_TYPE.float, -1 ); + array_push(outputs, _out); return _inp; } setDynamicInput(2, false); @@ -118,11 +119,11 @@ function Node_MIDI_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor new checkBox(function() { attributes.live_update = !attributes.live_update; })] ); - static step = function() { #region + static step = function() { LIVE_UPDATE = attributes.live_update; - } #endregion + } - static update = function() { #region + static update = function() { var _inport = inputs[0].getValue(); if(_inport != MIDI_INPORT) { rtmidi_set_inport(_inport); @@ -172,11 +173,11 @@ function Node_MIDI_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor _ind++; } - } #endregion + } static onDestroy = function() { rtmidi_deinit(); } - static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) { #region + static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) { var bbox = drawGetBbox(xx, yy, _s); var bx = bbox.xc; var by = bbox.y0 + bbox.h * 0.55; @@ -186,13 +187,9 @@ function Node_MIDI_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor draw_set_text(f_sdf, fa_center, fa_center, c_white); var text = string(disp_value); - var ss = max(0.5, _s) * 0.5; by = bbox.y0 + bbox.h * 0.25 / 2; - draw_set_halign(fa_center); - draw_set_valign(fa_center); - draw_text_cut(bx, by, text, bbox.w, ss); - } #endregion + } } \ No newline at end of file diff --git a/scripts/node_mirror/node_mirror.gml b/scripts/node_mirror/node_mirror.gml index 698addf1e..d680c7323 100644 --- a/scripts/node_mirror/node_mirror.gml +++ b/scripts/node_mirror/node_mirror.gml @@ -12,9 +12,9 @@ function Node_Mirror(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(3, nodeValue_Bool("Active", self, true)); active_index = 3; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Mirror mask", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Mirror mask", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, ["Surfaces", false], 0, diff --git a/scripts/node_mk_blinker/node_mk_blinker.gml b/scripts/node_mk_blinker/node_mk_blinker.gml index 5727f7538..8541cb58a 100644 --- a/scripts/node_mk_blinker/node_mk_blinker.gml +++ b/scripts/node_mk_blinker/node_mk_blinker.gml @@ -30,9 +30,9 @@ function Node_MK_Blinker(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(10, nodeValue_Float("Strength", self, 0.5 )) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone)); input_display_list = [ new Inspector_Sprite(s_MKFX), 6, ["Surfaces", false], 0, 1, diff --git a/scripts/node_mk_brownian/node_mk_brownian.gml b/scripts/node_mk_brownian/node_mk_brownian.gml index a613d3dec..babe52344 100644 --- a/scripts/node_mk_brownian/node_mk_brownian.gml +++ b/scripts/node_mk_brownian/node_mk_brownian.gml @@ -31,7 +31,7 @@ function Node_MK_Brownian(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(13, nodeValue_Range("Size", self, [ 1, 1 ], { linked : true })); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone)); input_display_list = [ new Inspector_Sprite(s_MKFX), 8, ["Dimension", false], 0, 12, diff --git a/scripts/node_mk_cable/node_mk_cable.gml b/scripts/node_mk_cable/node_mk_cable.gml index a0a0148f1..cea6a81c5 100644 --- a/scripts/node_mk_cable/node_mk_cable.gml +++ b/scripts/node_mk_cable/node_mk_cable.gml @@ -11,7 +11,7 @@ function Node_MK_Cable(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Saber", false], 1, 2, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var _hov = false; diff --git a/scripts/node_mk_fall/node_mk_fall.gml b/scripts/node_mk_fall/node_mk_fall.gml index 8badd26ff..dd6c9e41b 100644 --- a/scripts/node_mk_fall/node_mk_fall.gml +++ b/scripts/node_mk_fall/node_mk_fall.gml @@ -53,7 +53,7 @@ function Node_MK_Fall(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(23, nodeValue_Float("Twist Radius", self, 0.7)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone)); input_display_list = [ new Inspector_Sprite(s_MKFX), 2, ["Dimension", false], 0, 1, diff --git a/scripts/node_mk_flag/node_mk_flag.gml b/scripts/node_mk_flag/node_mk_flag.gml index 5c54a76db..a1639ee82 100644 --- a/scripts/node_mk_flag/node_mk_flag.gml +++ b/scripts/node_mk_flag/node_mk_flag.gml @@ -40,7 +40,7 @@ function Node_MK_Flag(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ["Rendering", false], 10, 11, 12, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attributes.iteration = 4; array_push(attributeEditors, "Verlet solver"); diff --git a/scripts/node_mk_flame/node_mk_flame.gml b/scripts/node_mk_flame/node_mk_flame.gml index e0bb2adc3..1a953e6c7 100644 --- a/scripts/node_mk_flame/node_mk_flame.gml +++ b/scripts/node_mk_flame/node_mk_flame.gml @@ -10,7 +10,7 @@ function Node_MK_Flame(_x, _y, _group = noone) : Node(_x, _y, _group) constructo ["Shape", false], 1, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static step = function() { #region diff --git a/scripts/node_mk_flare/node_mk_flare.gml b/scripts/node_mk_flare/node_mk_flare.gml index 4e2cdde95..5e15057a2 100644 --- a/scripts/node_mk_flare/node_mk_flare.gml +++ b/scripts/node_mk_flare/node_mk_flare.gml @@ -58,9 +58,9 @@ function Node_MK_Flare(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(6, nodeValue_Vec2("Focus", self, [ 0.5, 0.5 ])) .setUnitRef(function(index) { return getDimension(index); }, VALUE_UNIT.reference); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Light only", self, VALUE_TYPE.surface, noone)); static __frame = function(_x, _y, _w, _h, _m, _hover) { var _hv = point_in_rectangle(_m[0], _m[1], _x, _y, _x + _w, _y + _h) && _hover; diff --git a/scripts/node_mk_fracture/node_mk_fracture.gml b/scripts/node_mk_fracture/node_mk_fracture.gml index 8c34061a9..3547f062e 100644 --- a/scripts/node_mk_fracture/node_mk_fracture.gml +++ b/scripts/node_mk_fracture/node_mk_fracture.gml @@ -43,7 +43,7 @@ function Node_MK_Fracture(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Render", false], 7, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { #region diff --git a/scripts/node_mk_gridballs/node_mk_gridballs.gml b/scripts/node_mk_gridballs/node_mk_gridballs.gml index 616c8bf4d..9eec03325 100644 --- a/scripts/node_mk_gridballs/node_mk_gridballs.gml +++ b/scripts/node_mk_gridballs/node_mk_gridballs.gml @@ -45,7 +45,7 @@ function Node_MK_GridBalls(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro ["Render", false], 12, 3, 6, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_mk_gridflip/node_mk_gridflip.gml b/scripts/node_mk_gridflip/node_mk_gridflip.gml index 7ec6aa30a..4bf6aff51 100644 --- a/scripts/node_mk_gridflip/node_mk_gridflip.gml +++ b/scripts/node_mk_gridflip/node_mk_gridflip.gml @@ -33,7 +33,7 @@ function Node_MK_GridFlip(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Flip", false], 6, 10, 5, 7, 8, 9, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_mk_rain/node_mk_rain.gml b/scripts/node_mk_rain/node_mk_rain.gml index 1826b6fed..3c38ec8c1 100644 --- a/scripts/node_mk_rain/node_mk_rain.gml +++ b/scripts/node_mk_rain/node_mk_rain.gml @@ -49,7 +49,7 @@ function Node_MK_Rain(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ["Render", false], 5, 6, 17, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static step = function() { #region var _shap = getSingleValue(9); diff --git a/scripts/node_mk_saber/node_mk_saber.gml b/scripts/node_mk_saber/node_mk_saber.gml index 547120006..c46ff34cd 100644 --- a/scripts/node_mk_saber/node_mk_saber.gml +++ b/scripts/node_mk_saber/node_mk_saber.gml @@ -30,7 +30,7 @@ function Node_MK_Saber(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Render", false], 4, 7, 5, 8, 9, 10, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); prev_points = noone; fixed_length = 0; diff --git a/scripts/node_mk_sparkle/node_mk_sparkle.gml b/scripts/node_mk_sparkle/node_mk_sparkle.gml index d48dcc1d3..4acbd42d5 100644 --- a/scripts/node_mk_sparkle/node_mk_sparkle.gml +++ b/scripts/node_mk_sparkle/node_mk_sparkle.gml @@ -28,7 +28,7 @@ function Node_MK_Sparkle(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(8, nodeValue_Float("Diagonal", self, 0.2)) .setDisplay(VALUE_DISPLAY.slider) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ new Inspector_Sprite(s_MKFX), 1, ["Surfaces", false], 0, @@ -358,7 +358,7 @@ function __Node_MK_Sparkle(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro sparkleEditor ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); temp_surface = [ noone, noone ]; diff --git a/scripts/node_mk_subpixel/node_mk_subpixel.gml b/scripts/node_mk_subpixel/node_mk_subpixel.gml index 56f473450..d3f1a1b5e 100644 --- a/scripts/node_mk_subpixel/node_mk_subpixel.gml +++ b/scripts/node_mk_subpixel/node_mk_subpixel.gml @@ -50,7 +50,7 @@ function Node_MK_Subpixel(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Flicker", false, 13], 14, 15, 16, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static processData = function(_outSurf, _data, _output_index, _array_index) { var _type = _data[1]; diff --git a/scripts/node_mk_tile/node_mk_tile.gml b/scripts/node_mk_tile/node_mk_tile.gml index 49d66d59c..5b7f9bf96 100644 --- a/scripts/node_mk_tile/node_mk_tile.gml +++ b/scripts/node_mk_tile/node_mk_tile.gml @@ -37,7 +37,7 @@ function Node_MK_Tile(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ["Output", false], 3, 14, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); temp_surface = array_create(55); for( var i = 0, n = array_length(temp_surface); i < n; i++ ) diff --git a/scripts/node_module_test/node_module_test.gml b/scripts/node_module_test/node_module_test.gml index eacd83189..ce6257ba6 100644 --- a/scripts/node_module_test/node_module_test.gml +++ b/scripts/node_module_test/node_module_test.gml @@ -9,7 +9,7 @@ function Node_Module_Test(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(0, nodeValue_Float("Static input", self, 0)); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.float, 0)); //input_display_list = [ 0 ]; diff --git a/scripts/node_monitor_capture/node_monitor_capture.gml b/scripts/node_monitor_capture/node_monitor_capture.gml index d28367269..f6e5ff7eb 100644 --- a/scripts/node_monitor_capture/node_monitor_capture.gml +++ b/scripts/node_monitor_capture/node_monitor_capture.gml @@ -10,7 +10,7 @@ function Node_Monitor_Capture(_x, _y, _group = noone) : Node(_x, _y, _group) con newInput(2, nodeValue_Vec4("Region", self, [ 0, 0, display_get_width(), display_get_height() ])); - outputs[0] = nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("GUI", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, 1, 2, diff --git a/scripts/node_morph_surface/node_morph_surface.gml b/scripts/node_morph_surface/node_morph_surface.gml index 031dcde70..676b23b78 100644 --- a/scripts/node_morph_surface/node_morph_surface.gml +++ b/scripts/node_morph_surface/node_morph_surface.gml @@ -11,7 +11,7 @@ function Node_Morph_Surface(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(3, nodeValue_Float("Threshold", self, 0.5)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 0, 1, diff --git a/scripts/node_move_point/node_move_point.gml b/scripts/node_move_point/node_move_point.gml index 10c04ca76..8e52cc2d6 100644 --- a/scripts/node_move_point/node_move_point.gml +++ b/scripts/node_move_point/node_move_point.gml @@ -15,7 +15,7 @@ function Node_Move_Point(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(4, nodeValue_Float("Distance", self, 4 )); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); static step = function() { diff --git a/scripts/node_noise/node_noise.gml b/scripts/node_noise/node_noise.gml index 74c7abc87..89c0b349f 100644 --- a/scripts/node_noise/node_noise.gml +++ b/scripts/node_noise/node_noise.gml @@ -20,7 +20,7 @@ function Node_Noise(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con ["Color", false], 2, 3, 4, 5, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_noise_aniso/node_noise_aniso.gml b/scripts/node_noise_aniso/node_noise_aniso.gml index 72673f963..f88bf89b0 100644 --- a/scripts/node_noise_aniso/node_noise_aniso.gml +++ b/scripts/node_noise_aniso/node_noise_aniso.gml @@ -36,7 +36,7 @@ function Node_Noise_Aniso(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Render", false], 9, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_noise_fbm/node_noise_fbm.gml b/scripts/node_noise_fbm/node_noise_fbm.gml index b36bcd0e5..503cf93c1 100644 --- a/scripts/node_noise_fbm/node_noise_fbm.gml +++ b/scripts/node_noise_fbm/node_noise_fbm.gml @@ -26,7 +26,7 @@ function Node_Noise_FBM(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Color", false], 5, 6, 7, 8, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_noise_hex/node_noise_hex.gml b/scripts/node_noise_hex/node_noise_hex.gml index 69fa4c27c..4499a555c 100644 --- a/scripts/node_noise_hex/node_noise_hex.gml +++ b/scripts/node_noise_hex/node_noise_hex.gml @@ -30,7 +30,7 @@ function Node_Noise_Hex(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Texture", false], 4 ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_noise_simplex/node_noise_simplex.gml b/scripts/node_noise_simplex/node_noise_simplex.gml index d2b3e17be..01eca49cc 100644 --- a/scripts/node_noise_simplex/node_noise_simplex.gml +++ b/scripts/node_noise_simplex/node_noise_simplex.gml @@ -36,7 +36,7 @@ function Node_Noise_Simplex(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr ["Render", false], 4, 5, 6, 7, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_noise_tri/node_noise_tri.gml b/scripts/node_noise_tri/node_noise_tri.gml index ece19710b..141148e44 100644 --- a/scripts/node_noise_tri/node_noise_tri.gml +++ b/scripts/node_noise_tri/node_noise_tri.gml @@ -30,7 +30,7 @@ function Node_Noise_Tri(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Texture", false], 4, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_normal/node_normal.gml b/scripts/node_normal/node_normal.gml index 4f49cc8c1..88cb1668c 100644 --- a/scripts/node_normal/node_normal.gml +++ b/scripts/node_normal/node_normal.gml @@ -16,7 +16,7 @@ function Node_Normal(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co ["Normal", false], 1, 2, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_normal_light/node_normal_light.gml b/scripts/node_normal_light/node_normal_light.gml index cdfabd5a4..e5ba8b713 100644 --- a/scripts/node_normal_light/node_normal_light.gml +++ b/scripts/node_normal_light/node_normal_light.gml @@ -30,7 +30,7 @@ function Node_Normal_Light(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro ["Light", false], 3, 8, 4, 10, 5, 6, 7 ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_normalize/node_normalize.gml b/scripts/node_normalize/node_normalize.gml index 2a0c2b92b..c37069413 100644 --- a/scripts/node_normalize/node_normalize.gml +++ b/scripts/node_normalize/node_normalize.gml @@ -7,7 +7,7 @@ function Node_Normalize(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) input_display_list = [ 0, 1 ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_number/node_number.gml b/scripts/node_number/node_number.gml index 42a77d6ac..c12073dd3 100644 --- a/scripts/node_number/node_number.gml +++ b/scripts/node_number/node_number.gml @@ -32,7 +32,7 @@ function Node_Number(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(5, nodeValue_Bool("Clamp to range", self, true)); - outputs[0] = nodeValue_Output("Number", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Number", self, VALUE_TYPE.float, 0)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var __ax = getInputData(0); diff --git a/scripts/node_offset/node_offset.gml b/scripts/node_offset/node_offset.gml index 6e20d110c..d49af09eb 100644 --- a/scripts/node_offset/node_offset.gml +++ b/scripts/node_offset/node_offset.gml @@ -17,7 +17,7 @@ function Node_Offset(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co ["Offset", false], 1, 2, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_onion_skin/node_onion_skin.gml b/scripts/node_onion_skin/node_onion_skin.gml index ee748d8b3..5e8b03598 100644 --- a/scripts/node_onion_skin/node_onion_skin.gml +++ b/scripts/node_onion_skin/node_onion_skin.gml @@ -18,7 +18,7 @@ function Node_Onion_Skin(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(6, nodeValue_Bool("On top", self, true, "Render current frame on top of all frames.")) - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surface", false], 0, 1, 5, diff --git a/scripts/node_outline/node_outline.gml b/scripts/node_outline/node_outline.gml index 3a73cdb32..1f6711bf7 100644 --- a/scripts/node_outline/node_outline.gml +++ b/scripts/node_outline/node_outline.gml @@ -59,9 +59,9 @@ function Node_Outline(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Outline", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Outline", self, VALUE_TYPE.surface, noone)); input_display_list = [ 11, ["Surfaces", true], 0, 9, 10, 13, 14, diff --git a/scripts/node_override_channel/node_override_channel.gml b/scripts/node_override_channel/node_override_channel.gml index f00a821a8..825047b5e 100644 --- a/scripts/node_override_channel/node_override_channel.gml +++ b/scripts/node_override_channel/node_override_channel.gml @@ -10,7 +10,7 @@ function Node_Override_Channel(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(5, nodeValue_Enum_Scroll("Sampling type", self, 0, ["Brightness", "Channel value"])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Sampling", false], 5, diff --git a/scripts/node_pack_sprites/node_pack_sprites.gml b/scripts/node_pack_sprites/node_pack_sprites.gml index 1267150d3..dfe5c2f13 100644 --- a/scripts/node_pack_sprites/node_pack_sprites.gml +++ b/scripts/node_pack_sprites/node_pack_sprites.gml @@ -11,9 +11,9 @@ function Node_Pack_Sprites(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(4, nodeValue_Int("Spacing", self, 0)); - outputs[0] = nodeValue_Output("Packed image", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Packed image", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, []); + newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, [])); input_display_list = [ 0, 4, 1, 2, 3 ]; diff --git a/scripts/node_padding/node_padding.gml b/scripts/node_padding/node_padding.gml index aa5e590bf..7a5c36604 100644 --- a/scripts/node_padding/node_padding.gml +++ b/scripts/node_padding/node_padding.gml @@ -22,7 +22,7 @@ function Node_Padding(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(8, nodeValue_Enum_Button("Vertical alignment", self, 0 , [ THEME.inspector_surface_valign, THEME.inspector_surface_valign, THEME.inspector_surface_valign ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 4, ["Surfaces", true], 0, diff --git a/scripts/node_palette/node_palette.gml b/scripts/node_palette/node_palette.gml index 79136ea35..d01eb7982 100644 --- a/scripts/node_palette/node_palette.gml +++ b/scripts/node_palette/node_palette.gml @@ -6,7 +6,7 @@ function Node_Palette(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(1, nodeValue_Slider_Range("Trim range", self, [ 0, 1 ])); - outputs[0] = nodeValue_Output("Palette", self, VALUE_TYPE.color, []) + newOutput(0, nodeValue_Output("Palette", self, VALUE_TYPE.color, [])) .setDisplay(VALUE_DISPLAY.palette); input_display_list = [0, diff --git a/scripts/node_palette_extract/node_palette_extract.gml b/scripts/node_palette_extract/node_palette_extract.gml index d9cc22580..1e763c76b 100644 --- a/scripts/node_palette_extract/node_palette_extract.gml +++ b/scripts/node_palette_extract/node_palette_extract.gml @@ -17,7 +17,7 @@ function Node_Palette_Extract(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(4, nodeValue_Enum_Scroll("Color Space", self, 1, { data: [ "RGB", "HSV" ], update_hover: false })) .rejectArray(); - outputs[0] = nodeValue_Output("Palette", self, VALUE_TYPE.color, [ ]) + newOutput(0, nodeValue_Output("Palette", self, VALUE_TYPE.color, [ ])) .setDisplay(VALUE_DISPLAY.palette); static getPreviewValues = function() { return getInputData(0); } diff --git a/scripts/node_palette_replace/node_palette_replace.gml b/scripts/node_palette_replace/node_palette_replace.gml index 01e945521..1e092afd4 100644 --- a/scripts/node_palette_replace/node_palette_replace.gml +++ b/scripts/node_palette_replace/node_palette_replace.gml @@ -16,7 +16,7 @@ function Node_Palette_Replace(_x, _y, _group = noone) : Node_Processor(_x, _y, _ ["Palette", false], 1, 2, 3, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.color, [ ] ) + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.color, [ ] )) .setDisplay(VALUE_DISPLAY.palette); static processData = function(_outSurf, _data, _output_index, _array_index) { #region diff --git a/scripts/node_palette_shift/node_palette_shift.gml b/scripts/node_palette_shift/node_palette_shift.gml index 07be8570e..0cbfef01c 100644 --- a/scripts/node_palette_shift/node_palette_shift.gml +++ b/scripts/node_palette_shift/node_palette_shift.gml @@ -25,7 +25,7 @@ function Node_Palette_Shift(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr ["Palette", false], 1, 2 ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_palette_sort/node_palette_sort.gml b/scripts/node_palette_sort/node_palette_sort.gml index 7558f547d..83cd1b616 100644 --- a/scripts/node_palette_sort/node_palette_sort.gml +++ b/scripts/node_palette_sort/node_palette_sort.gml @@ -16,7 +16,7 @@ function Node_Palette_Sort(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro - L: Brightness - Use small letter for ascending, capital letter for descending order.")); - outputs[0] = nodeValue_Output("Sorted palette", self, VALUE_TYPE.color, []) + newOutput(0, nodeValue_Output("Sorted palette", self, VALUE_TYPE.color, [])) .setDisplay(VALUE_DISPLAY.palette); input_display_list = [ diff --git a/scripts/node_particle/node_particle.gml b/scripts/node_particle/node_particle.gml index 2b210f7cb..4d3af1685 100644 --- a/scripts/node_particle/node_particle.gml +++ b/scripts/node_particle/node_particle.gml @@ -22,7 +22,7 @@ function Node_Particle(_x, _y, _group = noone) : Node_VFX_Spawner_Base(_x, _y, _ inputs[3].setUnitRef(onSurfaceSize, VALUE_UNIT.reference); inputs[3].setDefValue( DEF_AREA_REF ); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); for(var i = input_len, n = array_length(inputs); i < n; i++) inputs[i].rejectArray(); diff --git a/scripts/node_path/node_path.gml b/scripts/node_path/node_path.gml index 05a153280..60db4648d 100644 --- a/scripts/node_path/node_path.gml +++ b/scripts/node_path/node_path.gml @@ -27,12 +27,12 @@ function Node_Path(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(3, nodeValue_Bool("Round anchor", self, false)) .rejectArray(); - outputs[0] = nodeValue_Output("Position out", self, VALUE_TYPE.float, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Position out", self, VALUE_TYPE.float, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); - outputs[1] = nodeValue_Output("Path data", self, VALUE_TYPE.pathnode, self); + newOutput(1, nodeValue_Output("Path data", self, VALUE_TYPE.pathnode, self)); - outputs[2] = nodeValue_Output("Anchors", self, VALUE_TYPE.float, []) + newOutput(2, nodeValue_Output("Anchors", self, VALUE_TYPE.float, [])) .setVisible(false) .setArrayDepth(1); diff --git a/scripts/node_path_3d/node_path_3d.gml b/scripts/node_path_3d/node_path_3d.gml index f01f906e4..99eef82bf 100644 --- a/scripts/node_path_3d/node_path_3d.gml +++ b/scripts/node_path_3d/node_path_3d.gml @@ -31,12 +31,12 @@ function Node_Path_3D(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(3, nodeValue_Bool("Round anchor", self, false)) .rejectArray(); - outputs[0] = nodeValue_Output("Position out", self, VALUE_TYPE.float, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Position out", self, VALUE_TYPE.float, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); - outputs[1] = nodeValue_Output("Path data", self, VALUE_TYPE.pathnode, self); + newOutput(1, nodeValue_Output("Path data", self, VALUE_TYPE.pathnode, self)); - outputs[2] = nodeValue_Output("Anchors", self, VALUE_TYPE.float, []) + newOutput(2, nodeValue_Output("Anchors", self, VALUE_TYPE.float, [])) .setVisible(false) .setArrayDepth(1); diff --git a/scripts/node_path_anchor/node_path_anchor.gml b/scripts/node_path_anchor/node_path_anchor.gml index 3bdcf1bb1..0f4286cad 100644 --- a/scripts/node_path_anchor/node_path_anchor.gml +++ b/scripts/node_path_anchor/node_path_anchor.gml @@ -12,7 +12,7 @@ function Node_Path_Anchor(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(3, nodeValue_Bool("Mirror control point", self, true )); - outputs[0] = nodeValue_Output("Anchor", self, VALUE_TYPE.float, [ 0, 0, 0, 0, 0, 0 ]) + newOutput(0, nodeValue_Output("Anchor", self, VALUE_TYPE.float, [ 0, 0, 0, 0, 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); tools = [ diff --git a/scripts/node_path_array/node_path_array.gml b/scripts/node_path_array/node_path_array.gml index 7c28e26e8..a3f6df256 100644 --- a/scripts/node_path_array/node_path_array.gml +++ b/scripts/node_path_array/node_path_array.gml @@ -4,7 +4,7 @@ function Node_Path_Array(_x, _y, _group = noone) : Node(_x, _y, _group) construc cached_pos = ds_map_create(); - outputs[0] = nodeValue_Output("Combined Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Combined Path", self, VALUE_TYPE.pathnode, self)); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_path_bake/node_path_bake.gml b/scripts/node_path_bake/node_path_bake.gml index 1418292f4..ea758d100 100644 --- a/scripts/node_path_bake/node_path_bake.gml +++ b/scripts/node_path_bake/node_path_bake.gml @@ -9,7 +9,7 @@ function Node_Path_Bake(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(2, nodeValue_Bool("Spread single path", self, true)); - outputs[0] = nodeValue_Output("Segments", self, VALUE_TYPE.float, [[]]) + newOutput(0, nodeValue_Output("Segments", self, VALUE_TYPE.float, [[]])) .setDisplay(VALUE_DISPLAY.vector) .setArrayDepth(2); diff --git a/scripts/node_path_blend/node_path_blend.gml b/scripts/node_path_blend/node_path_blend.gml index 0cb3d2544..8fbe43e28 100644 --- a/scripts/node_path_blend/node_path_blend.gml +++ b/scripts/node_path_blend/node_path_blend.gml @@ -15,7 +15,7 @@ function Node_Path_Blend(_x, _y, _group = noone) : Node(_x, _y, _group) construc .setDisplay(VALUE_DISPLAY.slider) .rejectArray(); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_bridge/node_path_bridge.gml b/scripts/node_path_bridge/node_path_bridge.gml index ba35dc72d..11409d919 100644 --- a/scripts/node_path_bridge/node_path_bridge.gml +++ b/scripts/node_path_bridge/node_path_bridge.gml @@ -12,7 +12,7 @@ function Node_Path_Bridge(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(2, nodeValue_Bool("Smooth", self, false)) .rejectArray(); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); input_display_list = [ 0, ["Bridge", false], 1, 2, diff --git a/scripts/node_path_builder/node_path_builder.gml b/scripts/node_path_builder/node_path_builder.gml index f73b733c0..f4a142555 100644 --- a/scripts/node_path_builder/node_path_builder.gml +++ b/scripts/node_path_builder/node_path_builder.gml @@ -23,7 +23,7 @@ function Node_Path_Builder(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(1, nodeValue_Bool("Loop", self, false)); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_from_mask/node_path_from_mask.gml b/scripts/node_path_from_mask/node_path_from_mask.gml index c48c136de..2ff9f26e9 100644 --- a/scripts/node_path_from_mask/node_path_from_mask.gml +++ b/scripts/node_path_from_mask/node_path_from_mask.gml @@ -5,7 +5,7 @@ function Node_Path_From_Mask(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(1, nodeValue_Float("Smooth angle", self, 15)); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); temp_surface = [ surface_create(1, 1) ]; diff --git a/scripts/node_path_l_system/node_path_l_system.gml b/scripts/node_path_l_system/node_path_l_system.gml index bdef6e16b..ffc51ee62 100644 --- a/scripts/node_path_l_system/node_path_l_system.gml +++ b/scripts/node_path_l_system/node_path_l_system.gml @@ -42,7 +42,7 @@ function Node_Path_L_System(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr setDynamicInput(2, false); if(!LOADING && !APPENDING) createNewInput(); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); rule_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { rule_renderer.x = _x; diff --git a/scripts/node_path_map/node_path_map.gml b/scripts/node_path_map/node_path_map.gml index 59c9b90f6..9197ba7f2 100644 --- a/scripts/node_path_map/node_path_map.gml +++ b/scripts/node_path_map/node_path_map.gml @@ -13,7 +13,7 @@ function Node_Path_Map(_x, _y, _group = noone) : Node(_x, _y, _group) constructo .setValidator(VV_min(2)) .rejectArray(); - outputs[0] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Mapping", false], 1, 2, 3, diff --git a/scripts/node_path_map_area/node_path_map_area.gml b/scripts/node_path_map_area/node_path_map_area.gml index 607671315..ea6c0416f 100644 --- a/scripts/node_path_map_area/node_path_map_area.gml +++ b/scripts/node_path_map_area/node_path_map_area.gml @@ -8,7 +8,7 @@ function Node_Path_Map_Area(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(1, nodeValue_Area("Area", self, DEF_AREA, { useShape : false })); inputs[1].editWidget.adjust_shape = false; - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_plot/node_path_plot.gml b/scripts/node_path_plot/node_path_plot.gml index 0e9f556a1..76e1457b3 100644 --- a/scripts/node_path_plot/node_path_plot.gml +++ b/scripts/node_path_plot/node_path_plot.gml @@ -23,7 +23,7 @@ function Node_Path_Plot(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(8, nodeValue_Vec2("Input shift", self, [ 0, 0 ])); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); input_display_list = [ [ "Variable", false ], 5, 7, 8, 0, diff --git a/scripts/node_path_profile/node_path_profile.gml b/scripts/node_path_profile/node_path_profile.gml index 3861599e9..abe906394 100644 --- a/scripts/node_path_profile/node_path_profile.gml +++ b/scripts/node_path_profile/node_path_profile.gml @@ -20,7 +20,7 @@ function Node_Path_Profile(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(8, nodeValue_Color("BG Color", self, c_black )); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone ); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone )); input_display_list = [ 0, [ "Profile", false ], 1, 2, diff --git a/scripts/node_path_reverse/node_path_reverse.gml b/scripts/node_path_reverse/node_path_reverse.gml index d12fa8619..982072fe7 100644 --- a/scripts/node_path_reverse/node_path_reverse.gml +++ b/scripts/node_path_reverse/node_path_reverse.gml @@ -5,7 +5,7 @@ function Node_Path_Reverse(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(0, nodeValue_PathNode("Path", self, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_sample/node_path_sample.gml b/scripts/node_path_sample/node_path_sample.gml index c9bd5f8ff..cf85b2964 100644 --- a/scripts/node_path_sample/node_path_sample.gml +++ b/scripts/node_path_sample/node_path_sample.gml @@ -10,10 +10,10 @@ function Node_Path_Sample(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(2, nodeValue_Enum_Scroll("Type", self, 0, [ "Loop", "Ping pong" ])); - outputs[0] = nodeValue_Output("Position", self, VALUE_TYPE.float, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Position", self, VALUE_TYPE.float, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); - outputs[1] = nodeValue_Output("Direction", self, VALUE_TYPE.float, 0); + newOutput(1, nodeValue_Output("Direction", self, VALUE_TYPE.float, 0)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { #region var _path = getInputData(0); diff --git a/scripts/node_path_scatter/node_path_scatter.gml b/scripts/node_path_scatter/node_path_scatter.gml index 61de3229a..d52852e5a 100644 --- a/scripts/node_path_scatter/node_path_scatter.gml +++ b/scripts/node_path_scatter/node_path_scatter.gml @@ -32,7 +32,7 @@ function Node_Path_Scatter(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(12, nodeValue_Enum_Scroll("Origin", self, 0 , [ "Individual", "First", "Zero" ])); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); input_display_list = [ 5, ["Paths", false], 0, 1, 10, 9, diff --git a/scripts/node_path_separate_folder/node_path_separate_folder.gml b/scripts/node_path_separate_folder/node_path_separate_folder.gml index 7094a7501..ded31bc8a 100644 --- a/scripts/node_path_separate_folder/node_path_separate_folder.gml +++ b/scripts/node_path_separate_folder/node_path_separate_folder.gml @@ -8,9 +8,9 @@ function Node_Path_Separate_Folder(_x, _y, _group = noone) : Node_Processor(_x, newInput(1, nodeValue_Bool("Keep extension", self, true)); - outputs[0] = nodeValue_Output("Directory", self, VALUE_TYPE.path, ""); + newOutput(0, nodeValue_Output("Directory", self, VALUE_TYPE.path, "")); - outputs[1] = nodeValue_Output("File Name", self, VALUE_TYPE.path, ""); + newOutput(1, nodeValue_Output("File Name", self, VALUE_TYPE.path, "")); static processData = function(_outData, _data, _index = 0) { var _path = _data[0]; diff --git a/scripts/node_path_shift/node_path_shift.gml b/scripts/node_path_shift/node_path_shift.gml index 9f227cf40..89167a7fa 100644 --- a/scripts/node_path_shift/node_path_shift.gml +++ b/scripts/node_path_shift/node_path_shift.gml @@ -7,7 +7,7 @@ function Node_Path_Shift(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(1, nodeValue_Float("Distance", self, 0)); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_smooth/node_path_smooth.gml b/scripts/node_path_smooth/node_path_smooth.gml index e38c6a5a3..fe536c6f0 100644 --- a/scripts/node_path_smooth/node_path_smooth.gml +++ b/scripts/node_path_smooth/node_path_smooth.gml @@ -11,7 +11,7 @@ function Node_Path_Smooth(_x, _y, _group = noone) : Node(_x, _y, _group) constru newInput(2, nodeValue_Float("Smoothness", self, 3)) .setDisplay(VALUE_DISPLAY.slider, { range : [ 1, 5, 0.01 ] } ); - outputs[0] = nodeValue_Output("Path data", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path data", self, VALUE_TYPE.pathnode, self)); input_display_list = [ ["Path", false], 0, 1, 2, diff --git a/scripts/node_path_transform/node_path_transform.gml b/scripts/node_path_transform/node_path_transform.gml index 20874e996..105a2cd39 100644 --- a/scripts/node_path_transform/node_path_transform.gml +++ b/scripts/node_path_transform/node_path_transform.gml @@ -13,7 +13,7 @@ function Node_Path_Transform(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(4, nodeValue_Vec2("Anchor", self, [ 0, 0 ])); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_trim/node_path_trim.gml b/scripts/node_path_trim/node_path_trim.gml index 3a6cc36f4..21fcd5205 100644 --- a/scripts/node_path_trim/node_path_trim.gml +++ b/scripts/node_path_trim/node_path_trim.gml @@ -7,7 +7,7 @@ function Node_Path_Trim(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(1, nodeValue_Slider_Range("Range", self, [ 0, 1 ])); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); cached_pos = ds_map_create(); diff --git a/scripts/node_path_wave/node_path_wave.gml b/scripts/node_path_wave/node_path_wave.gml index 3c66635d6..e8ff9b873 100644 --- a/scripts/node_path_wave/node_path_wave.gml +++ b/scripts/node_path_wave/node_path_wave.gml @@ -24,7 +24,7 @@ function Node_Path_Wave(_x, _y, _group = noone) : Node(_x, _y, _group) construct newInput(9, nodeValue("Amplitude over length", self, CONNECT_TYPE.input, VALUE_TYPE.curve, CURVE_DEF_11)); - outputs[0] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self); + newOutput(0, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, self)); input_display_list = [ 5, ["Path", true], 0, diff --git a/scripts/node_pb_box_contract/node_pb_box_contract.gml b/scripts/node_pb_box_contract/node_pb_box_contract.gml index e2221b139..366129e29 100644 --- a/scripts/node_pb_box_contract/node_pb_box_contract.gml +++ b/scripts/node_pb_box_contract/node_pb_box_contract.gml @@ -14,9 +14,9 @@ function Node_PB_Box_Contract(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _gro newInput(5, nodeValue_Enum_Button("Axis", self, 0 , [ "X", "Y" ])); - outputs[0] = nodeValue_Output("pBox Center", self, VALUE_TYPE.pbBox, noone ); + newOutput(0, nodeValue_Output("pBox Center", self, VALUE_TYPE.pbBox, noone )); - outputs[1] = nodeValue_Output("pBox Side", self, VALUE_TYPE.pbBox, noone ); + newOutput(1, nodeValue_Output("pBox Side", self, VALUE_TYPE.pbBox, noone )); input_display_list = [ 0, 1, ["Split", false], 5, 2, 3, 4, diff --git a/scripts/node_pb_box_divide/node_pb_box_divide.gml b/scripts/node_pb_box_divide/node_pb_box_divide.gml index bf084d6d1..27fc0300f 100644 --- a/scripts/node_pb_box_divide/node_pb_box_divide.gml +++ b/scripts/node_pb_box_divide/node_pb_box_divide.gml @@ -15,9 +15,9 @@ function Node_PB_Box_Divide(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _group newInput(6, nodeValue_Enum_Button("Spacing", self, 0 , [ "Space Between", "Space Around", "Begin", "End" ])); - outputs[0] = nodeValue_Output("pBox Content", self, VALUE_TYPE.pbBox, [ noone ] ); + newOutput(0, nodeValue_Output("pBox Content", self, VALUE_TYPE.pbBox, [ noone ] )); - outputs[1] = nodeValue_Output("pBox Space", self, VALUE_TYPE.pbBox, [ noone ] ); + newOutput(1, nodeValue_Output("pBox Space", self, VALUE_TYPE.pbBox, [ noone ] )); input_display_list = [ 0, 1, ["Divide", false], 4, 2, 3, 6, 5, diff --git a/scripts/node_pb_box_divide_grid/node_pb_box_divide_grid.gml b/scripts/node_pb_box_divide_grid/node_pb_box_divide_grid.gml index 38c5178d5..07012b38e 100644 --- a/scripts/node_pb_box_divide_grid/node_pb_box_divide_grid.gml +++ b/scripts/node_pb_box_divide_grid/node_pb_box_divide_grid.gml @@ -10,7 +10,7 @@ function Node_PB_Box_Divide_Grid(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _ newInput(4, nodeValue_Bool("Mirror", self, 0 )) - outputs[0] = nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, [ noone ] ); + newOutput(0, nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, [ noone ] )); input_display_list = [ 0, 1, ["Divide", false], 2, 3, 4, diff --git a/scripts/node_pb_box_inset/node_pb_box_inset.gml b/scripts/node_pb_box_inset/node_pb_box_inset.gml index 5f1999b32..db3da4f3a 100644 --- a/scripts/node_pb_box_inset/node_pb_box_inset.gml +++ b/scripts/node_pb_box_inset/node_pb_box_inset.gml @@ -21,9 +21,9 @@ function Node_PB_Box_Inset(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _group) newInput(7, nodeValue_Float("Vertical alignment", self, 0.5 )) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("pBox Inset", self, VALUE_TYPE.pbBox, noone ); + newOutput(0, nodeValue_Output("pBox Inset", self, VALUE_TYPE.pbBox, noone )); - outputs[1] = nodeValue_Output("pBox Frame", self, VALUE_TYPE.pbBox, noone ); + newOutput(1, nodeValue_Output("pBox Frame", self, VALUE_TYPE.pbBox, noone )); input_display_list = [ 0, 1, ["Inset", false], 3, 2, 4, 5, 6, 7, diff --git a/scripts/node_pb_box_mirror/node_pb_box_mirror.gml b/scripts/node_pb_box_mirror/node_pb_box_mirror.gml index 436b3686d..f3505b2ed 100644 --- a/scripts/node_pb_box_mirror/node_pb_box_mirror.gml +++ b/scripts/node_pb_box_mirror/node_pb_box_mirror.gml @@ -8,7 +8,7 @@ function Node_PB_Box_Mirror(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _group newInput(3, nodeValue_Bool("Vertical", self, false )); - outputs[0] = nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone ); + newOutput(0, nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone )); input_display_list = [ 0, 1, ["Mirror", false], 2, 3, diff --git a/scripts/node_pb_box_split/node_pb_box_split.gml b/scripts/node_pb_box_split/node_pb_box_split.gml index bf5a286d1..708a6f77e 100644 --- a/scripts/node_pb_box_split/node_pb_box_split.gml +++ b/scripts/node_pb_box_split/node_pb_box_split.gml @@ -16,9 +16,9 @@ function Node_PB_Box_Split(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _group) newInput(6, nodeValue_Bool("Mirror", self, 0 )) - outputs[0] = nodeValue_Output("pBox Left", self, VALUE_TYPE.pbBox, noone ); + newOutput(0, nodeValue_Output("pBox Left", self, VALUE_TYPE.pbBox, noone )); - outputs[1] = nodeValue_Output("pBox Right", self, VALUE_TYPE.pbBox, noone ); + newOutput(1, nodeValue_Output("pBox Right", self, VALUE_TYPE.pbBox, noone )); input_display_list = [ 0, 1, ["Split", false], 5, 2, 3, 4, 6, diff --git a/scripts/node_pb_box_transform/node_pb_box_transform.gml b/scripts/node_pb_box_transform/node_pb_box_transform.gml index 499dd5bc3..812336131 100644 --- a/scripts/node_pb_box_transform/node_pb_box_transform.gml +++ b/scripts/node_pb_box_transform/node_pb_box_transform.gml @@ -6,7 +6,7 @@ function Node_PB_Box_Transform(_x, _y, _group = noone) : Node_PB_Box(_x, _y, _gr newInput(2, nodeValue_Vec2("Translate", self, [ 0, 0 ] )); - outputs[0] = nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone ); + newOutput(0, nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone )); input_display_list = [ 0, 1, ["Translate", false], 2, diff --git a/scripts/node_pb_draw/node_pb_draw.gml b/scripts/node_pb_draw/node_pb_draw.gml index e7a5144eb..028528ecd 100644 --- a/scripts/node_pb_draw/node_pb_draw.gml +++ b/scripts/node_pb_draw/node_pb_draw.gml @@ -8,7 +8,7 @@ function Node_PB_Draw(_x, _y, _group = noone) : Node_PB(_x, _y, _group) construc newInput(2, nodeValue_Bool("Apply Mask", self, true )); - outputs[0] = nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone); + newOutput(0, nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone)); static getGraphPreviewSurface = function() { var _nbox = outputs[0].getValue(); diff --git a/scripts/node_pb_fx/node_pb_fx.gml b/scripts/node_pb_fx/node_pb_fx.gml index ec6a59657..6e3aeb67f 100644 --- a/scripts/node_pb_fx/node_pb_fx.gml +++ b/scripts/node_pb_fx/node_pb_fx.gml @@ -5,7 +5,7 @@ function Node_PB_Fx(_x, _y, _group = noone) : Node_PB(_x, _y, _group) constructo newInput(0, nodeValue("pBox", self, CONNECT_TYPE.input, VALUE_TYPE.pbBox, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone); + newOutput(0, nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone)); static getGraphPreviewSurface = function() { var _nbox = outputs[0].getValue(); diff --git a/scripts/node_pb_layer/node_pb_layer.gml b/scripts/node_pb_layer/node_pb_layer.gml index 82dd40a4c..ee043325b 100644 --- a/scripts/node_pb_layer/node_pb_layer.gml +++ b/scripts/node_pb_layer/node_pb_layer.gml @@ -4,7 +4,7 @@ function Node_PB_Layer(_x, _y, _group = noone) : Node(_x, _y, _group) constructo newInput(0, nodeValue_Int("Layer", self, 0 )); - outputs[0] = nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone ); + newOutput(0, nodeValue_Output("pBox", self, VALUE_TYPE.pbBox, noone )); static update = function() { var _dim = group.getInputData(0); diff --git a/scripts/node_perlin/node_perlin.gml b/scripts/node_perlin/node_perlin.gml index 379f894b4..786d2bc1a 100644 --- a/scripts/node_perlin/node_perlin.gml +++ b/scripts/node_perlin/node_perlin.gml @@ -38,7 +38,7 @@ function Node_Perlin(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co ["Render", false], 6, 7, 8, 9, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_perlin_smear/node_perlin_smear.gml b/scripts/node_perlin_smear/node_perlin_smear.gml index 8ca8d9141..a2e581474 100644 --- a/scripts/node_perlin_smear/node_perlin_smear.gml +++ b/scripts/node_perlin_smear/node_perlin_smear.gml @@ -15,7 +15,7 @@ function Node_Perlin_Smear(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(5, nodeValue_Rotation("Rotation", self, 0)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", false], 0, diff --git a/scripts/node_pin/node_pin.gml b/scripts/node_pin/node_pin.gml index ddea8db5a..485273964 100644 --- a/scripts/node_pin/node_pin.gml +++ b/scripts/node_pin/node_pin.gml @@ -16,7 +16,7 @@ function Node_Pin(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(0, nodeValue("In", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0 )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Out", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Out", self, VALUE_TYPE.any, 0)); static update = function() { if(inputs[0].value_from != noone) { diff --git a/scripts/node_pixel_builder/node_pixel_builder.gml b/scripts/node_pixel_builder/node_pixel_builder.gml index 2132ac8ef..a4c69497d 100644 --- a/scripts/node_pixel_builder/node_pixel_builder.gml +++ b/scripts/node_pixel_builder/node_pixel_builder.gml @@ -7,7 +7,7 @@ function Node_Pixel_Builder(_x, _y, _group = noone) : Node_Collection(_x, _y, _g newInput(0, nodeValue_Dimension(self)); - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); custom_input_index = array_length(inputs); custom_output_index = array_length(outputs); diff --git a/scripts/node_pixel_cloud/node_pixel_cloud.gml b/scripts/node_pixel_cloud/node_pixel_cloud.gml index 013f03f2b..76155b82a 100644 --- a/scripts/node_pixel_cloud/node_pixel_cloud.gml +++ b/scripts/node_pixel_cloud/node_pixel_cloud.gml @@ -38,7 +38,7 @@ function Node_Pixel_Cloud(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Color", true], 4, 9, 6, 7 ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_pixel_sampler/node_pixel_sampler.gml b/scripts/node_pixel_sampler/node_pixel_sampler.gml index 11cdc2f4a..6bb6a0838 100644 --- a/scripts/node_pixel_sampler/node_pixel_sampler.gml +++ b/scripts/node_pixel_sampler/node_pixel_sampler.gml @@ -22,7 +22,7 @@ function Node_Pixel_Sampler(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(8, nodeValue_Float("Blending Intensity", self, 1 )) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Base Texture", false], 0, 1, 2, diff --git a/scripts/node_pixel_sort/node_pixel_sort.gml b/scripts/node_pixel_sort/node_pixel_sort.gml index 61618fe4a..bf83a7538 100644 --- a/scripts/node_pixel_sort/node_pixel_sort.gml +++ b/scripts/node_pixel_sort/node_pixel_sort.gml @@ -34,7 +34,7 @@ function Node_Pixel_Sort(_x, _y, _group = noone) : Node_Processor(_x, _y, _group ["Pixel sort", false], 1, 2, 3, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_plot_linear/node_plot_linear.gml b/scripts/node_plot_linear/node_plot_linear.gml index 4eb0caf79..45e6c85cd 100644 --- a/scripts/node_plot_linear/node_plot_linear.gml +++ b/scripts/node_plot_linear/node_plot_linear.gml @@ -92,7 +92,7 @@ function Node_Plot_Linear(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Data", true], 1, 12, 21, 14, 2, 3, 15, 16, diff --git a/scripts/node_point_in_area/node_point_in_area.gml b/scripts/node_point_in_area/node_point_in_area.gml index 71d57c0b9..90364fda1 100644 --- a/scripts/node_point_in_area/node_point_in_area.gml +++ b/scripts/node_point_in_area/node_point_in_area.gml @@ -9,7 +9,7 @@ function Node_Point_In_Area(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(2, nodeValue_Bool("Include Boundary", self, true )); - outputs[0] = nodeValue_Output("Is in", self, VALUE_TYPE.boolean, false ); + newOutput(0, nodeValue_Output("Is in", self, VALUE_TYPE.boolean, false )); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { PROCESSOR_OVERLAY_CHECK diff --git a/scripts/node_polar/node_polar.gml b/scripts/node_polar/node_polar.gml index 5adc95932..a91d4f4de 100644 --- a/scripts/node_polar/node_polar.gml +++ b/scripts/node_polar/node_polar.gml @@ -35,7 +35,7 @@ function Node_Polar(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(12, nodeValue_Vec2("Tile", self, [ 1, 1 ] )); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, 4, ["Surfaces", false], 0, 1, 2, 7, 8, 12, diff --git a/scripts/node_posterize/node_posterize.gml b/scripts/node_posterize/node_posterize.gml index f4f23d068..04ca71357 100644 --- a/scripts/node_posterize/node_posterize.gml +++ b/scripts/node_posterize/node_posterize.gml @@ -32,7 +32,7 @@ function Node_Posterize(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Alpha", false], 6, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_project_data/node_project_data.gml b/scripts/node_project_data/node_project_data.gml index f52d0f555..305453812 100644 --- a/scripts/node_project_data/node_project_data.gml +++ b/scripts/node_project_data/node_project_data.gml @@ -2,19 +2,19 @@ function Node_Project_Data(_x, _y, _group = noone) : Node(_x, _y, _group) constr name = "Project Data"; setDimension(96, 48);; - outputs[0] = nodeValue_Output("Name", self, VALUE_TYPE.text, "") + newOutput(0, nodeValue_Output("Name", self, VALUE_TYPE.text, "")) .setVisible(false); - outputs[1] = nodeValue_Output("Description", self, VALUE_TYPE.text, "") + newOutput(1, nodeValue_Output("Description", self, VALUE_TYPE.text, "")) .setVisible(false); - outputs[2] = nodeValue_Output("Author", self, VALUE_TYPE.text, "") + newOutput(2, nodeValue_Output("Author", self, VALUE_TYPE.text, "")) .setVisible(false); - outputs[3] = nodeValue_Output("Contact", self, VALUE_TYPE.text, "") + newOutput(3, nodeValue_Output("Contact", self, VALUE_TYPE.text, "")) .setVisible(false); - outputs[4] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(4, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(false); static update = function() { diff --git a/scripts/node_pytagorean_tile/node_pytagorean_tile.gml b/scripts/node_pytagorean_tile/node_pytagorean_tile.gml index 45e16dbc6..d1a1e1285 100644 --- a/scripts/node_pytagorean_tile/node_pytagorean_tile.gml +++ b/scripts/node_pytagorean_tile/node_pytagorean_tile.gml @@ -68,7 +68,7 @@ function Node_Pytagorean_Tile(_x, _y, _group = noone) : Node_Processor(_x, _y, _ ["Truchet", true, 14], 15, 16, 20, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_quasicrystal/node_quasicrystal.gml b/scripts/node_quasicrystal/node_quasicrystal.gml index 24389ae42..3ed0cd542 100644 --- a/scripts/node_quasicrystal/node_quasicrystal.gml +++ b/scripts/node_quasicrystal/node_quasicrystal.gml @@ -33,7 +33,7 @@ function Node_Quasicrystal(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(10, nodeValue_Rotation_Range("Angle Range", self, [ 0, 180 ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", true], 0, diff --git a/scripts/node_random/node_random.gml b/scripts/node_random/node_random.gml index df01c4ea8..e6ee78837 100644 --- a/scripts/node_random/node_random.gml +++ b/scripts/node_random/node_random.gml @@ -10,7 +10,7 @@ function Node_Random(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(2, nodeValue_Float("to", self, 1)); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, 0)); static processData = function(_output, _data, _output_index, _array_index = 0) { random_set_seed(_data[0]); diff --git a/scripts/node_random_shape/node_random_shape.gml b/scripts/node_random_shape/node_random_shape.gml index ef93c82aa..bd5e0deee 100644 --- a/scripts/node_random_shape/node_random_shape.gml +++ b/scripts/node_random_shape/node_random_shape.gml @@ -6,7 +6,7 @@ function Node_Random_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(1, nodeValue_Int("Seed", self, seed_random(6))) .setDisplay(VALUE_DISPLAY._default, { side_button : button(function() { randomize(); inputs[1].setValue(seed_random(6)); }).setIcon(THEME.icon_random, 0, COLORS._main_icon) }); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", false], 0, diff --git a/scripts/node_random_tile/node_random_tile.gml b/scripts/node_random_tile/node_random_tile.gml index 7ec6317d1..c888be0b8 100644 --- a/scripts/node_random_tile/node_random_tile.gml +++ b/scripts/node_random_tile/node_random_tile.gml @@ -66,7 +66,7 @@ function Node_Random_Tile(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Truchet", true, 14], 15, 16, 19, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_rate_remap/node_rate_remap.gml b/scripts/node_rate_remap/node_rate_remap.gml index 52cc90ea0..53a8cfaf8 100644 --- a/scripts/node_rate_remap/node_rate_remap.gml +++ b/scripts/node_rate_remap/node_rate_remap.gml @@ -10,7 +10,7 @@ function Node_Rate_Remap(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(2, nodeValue_Bool("Active", self, true)); active_index = 2; - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); input_display_list = [ 2, ["Remap", false], 0, 1 diff --git a/scripts/node_rd/node_rd.gml b/scripts/node_rd/node_rd.gml index 984dd30bb..6b131da95 100644 --- a/scripts/node_rd/node_rd.gml +++ b/scripts/node_rd/node_rd.gml @@ -48,9 +48,9 @@ function Node_RD(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(13, nodeValue_Float("Diffusion", self, 1.)) .setDisplay(VALUE_DISPLAY.slider) - outputs[0] = nodeValue_Output("Reacted", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Reacted", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Rendered", self, VALUE_TYPE.surface, noone)); preview_channel = 1; diff --git a/scripts/node_region_fill/node_region_fill.gml b/scripts/node_region_fill/node_region_fill.gml index 1e0f71c1c..6d7c4fad4 100644 --- a/scripts/node_region_fill/node_region_fill.gml +++ b/scripts/node_region_fill/node_region_fill.gml @@ -26,7 +26,7 @@ function Node_Region_Fill(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(11, nodeValue_Bool("Color Filter", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 4, ["Surfaces", false], 0, 1, diff --git a/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml b/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml index 813d0a55a..bfed26056 100644 --- a/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml +++ b/scripts/node_render_sprite_sheet/node_render_sprite_sheet.gml @@ -47,9 +47,9 @@ function Node_Render_Sprite_Sheet(_x, _y, _group = noone) : Node(_x, _y, _group) newInput(11, nodeValue_Bool("Custom Range", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas Data", self, VALUE_TYPE.surface, []); + newOutput(1, nodeValue_Output("Atlas Data", self, VALUE_TYPE.surface, [])); input_display_list = [ ["Surfaces", false], 0, 1, 2, diff --git a/scripts/node_repeat/node_repeat.gml b/scripts/node_repeat/node_repeat.gml index 374c4b495..393d48a3f 100644 --- a/scripts/node_repeat/node_repeat.gml +++ b/scripts/node_repeat/node_repeat.gml @@ -109,7 +109,7 @@ function Node_Repeat(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(34, nodeValue_Enum_Scroll("Blend Mode", self, 0, [ "Normal", "Additive", "Maximum" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 0, 1, 16, 17, diff --git a/scripts/node_repeat_texture/node_repeat_texture.gml b/scripts/node_repeat_texture/node_repeat_texture.gml index 40d73e82c..e9725950f 100644 --- a/scripts/node_repeat_texture/node_repeat_texture.gml +++ b/scripts/node_repeat_texture/node_repeat_texture.gml @@ -11,7 +11,7 @@ function Node_Repeat_Texture(_x, _y, _group = noone) : Node_Processor(_x, _y, _g newInput(3, nodeValue_Float("Seed", self, seed_random(6))) .setDisplay(VALUE_DISPLAY._default, { side_button : button(function() { randomize(); inputs[3].setValue(seed_random(6)); }).setIcon(THEME.icon_random, 0, COLORS._main_icon) }) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, ["Surfaces", false], 0, diff --git a/scripts/node_revert/node_revert.gml b/scripts/node_revert/node_revert.gml index 7b7214e27..7dda4b0d6 100644 --- a/scripts/node_revert/node_revert.gml +++ b/scripts/node_revert/node_revert.gml @@ -4,7 +4,7 @@ function Node_Revert(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(0, nodeValue_Surface("Surface in", self)); - outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Output", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 0, diff --git a/scripts/node_rgb_channel/node_rgb_channel.gml b/scripts/node_rgb_channel/node_rgb_channel.gml index 053600083..c4afe04b0 100644 --- a/scripts/node_rgb_channel/node_rgb_channel.gml +++ b/scripts/node_rgb_channel/node_rgb_channel.gml @@ -10,10 +10,10 @@ function Node_RGB_Channel(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(3, nodeValue_Bool("Output Array", self, false)); - outputs[0] = nodeValue_Output("Red", self, VALUE_TYPE.surface, noone); - outputs[1] = nodeValue_Output("Green", self, VALUE_TYPE.surface, noone); - outputs[2] = nodeValue_Output("Blue", self, VALUE_TYPE.surface, noone); - outputs[3] = nodeValue_Output("Alpha", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Red", self, VALUE_TYPE.surface, noone)); + newOutput(1, nodeValue_Output("Green", self, VALUE_TYPE.surface, noone)); + newOutput(2, nodeValue_Output("Blue", self, VALUE_TYPE.surface, noone)); + newOutput(3, nodeValue_Output("Alpha", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_rigid_activate/node_rigid_activate.gml b/scripts/node_rigid_activate/node_rigid_activate.gml index 8d120a7fe..fd0497656 100644 --- a/scripts/node_rigid_activate/node_rigid_activate.gml +++ b/scripts/node_rigid_activate/node_rigid_activate.gml @@ -12,7 +12,7 @@ function Node_Rigid_Activate(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(1, nodeValue_Bool("Physics activated", self, true)) .rejectArray(); - outputs[0] = nodeValue_Output("Object", self, VALUE_TYPE.rigid, noone); + newOutput(0, nodeValue_Output("Object", self, VALUE_TYPE.rigid, noone)); input_display_list = [ ["Object", true], 0, diff --git a/scripts/node_rigid_force_apply/node_rigid_force_apply.gml b/scripts/node_rigid_force_apply/node_rigid_force_apply.gml index 970f434a2..bef35ea2e 100644 --- a/scripts/node_rigid_force_apply/node_rigid_force_apply.gml +++ b/scripts/node_rigid_force_apply/node_rigid_force_apply.gml @@ -34,7 +34,7 @@ function Node_Rigid_Force_Apply(_x, _y, _group = noone) : Node(_x, _y, _group) c newInput(8, nodeValue_Float("Range", self, 8)) .rejectArray(); - outputs[0] = nodeValue_Output("Object", self, VALUE_TYPE.rigid, noone); + newOutput(0, nodeValue_Output("Object", self, VALUE_TYPE.rigid, noone)); input_display_list = [ ["Object", true], 0, diff --git a/scripts/node_rigid_object/node_rigid_object.gml b/scripts/node_rigid_object/node_rigid_object.gml index 60aafba31..cfa8cdc00 100644 --- a/scripts/node_rigid_object/node_rigid_object.gml +++ b/scripts/node_rigid_object/node_rigid_object.gml @@ -64,7 +64,7 @@ function Node_Rigid_Object(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(12, nodeValue_Int("Collision group", self, 1)) .rejectArray() - outputs[0] = nodeValue_Output("Object", self, VALUE_TYPE.rigid, object); + newOutput(0, nodeValue_Output("Object", self, VALUE_TYPE.rigid, object)); input_display_list = [ 8, 12, ["Texture", false], 6, diff --git a/scripts/node_rigid_object_spawner/node_rigid_object_spawner.gml b/scripts/node_rigid_object_spawner/node_rigid_object_spawner.gml index 818a718a0..c7e738577 100644 --- a/scripts/node_rigid_object_spawner/node_rigid_object_spawner.gml +++ b/scripts/node_rigid_object_spawner/node_rigid_object_spawner.gml @@ -32,7 +32,7 @@ function Node_Rigid_Object_Spawner(_x, _y, _group = noone) : Node(_x, _y, _group newInput(7, nodeValue_Int("Seed", self, seed_random(6))) .setDisplay(VALUE_DISPLAY._default, { side_button : button(function() { randomize(); inputs[7].setValue(seed_random(6)); }).setIcon(THEME.icon_random, 0, COLORS._main_icon) }); - outputs[0] = nodeValue_Output("Object", self, VALUE_TYPE.rigid, object); + newOutput(0, nodeValue_Output("Object", self, VALUE_TYPE.rigid, object)); input_display_list = [ 0, 7, ["Spawn", false], 6, 1, 2, 3, 5, 4, diff --git a/scripts/node_rigid_override/node_rigid_override.gml b/scripts/node_rigid_override/node_rigid_override.gml index e6b0564c7..a204ac0b1 100644 --- a/scripts/node_rigid_override/node_rigid_override.gml +++ b/scripts/node_rigid_override/node_rigid_override.gml @@ -22,7 +22,7 @@ function Node_Rigid_Override(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(6, nodeValue_Vec2("Velocity", self, [0, 0] )); - outputs[0] = nodeValue_Output("Object", self, VALUE_TYPE.rigid, noone ); + newOutput(0, nodeValue_Output("Object", self, VALUE_TYPE.rigid, noone )); static update = function(frame = CURRENT_FRAME) { var objs = getInputData(0); diff --git a/scripts/node_rigid_render/node_rigid_render.gml b/scripts/node_rigid_render/node_rigid_render.gml index 65e76d251..aa5bd88a8 100644 --- a/scripts/node_rigid_render/node_rigid_render.gml +++ b/scripts/node_rigid_render/node_rigid_render.gml @@ -12,7 +12,7 @@ function Node_Rigid_Render(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(1, nodeValue_Bool("Round position", self, false)) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_rigid_variable/node_rigid_variable.gml b/scripts/node_rigid_variable/node_rigid_variable.gml index 75565d61c..db5ea9773 100644 --- a/scripts/node_rigid_variable/node_rigid_variable.gml +++ b/scripts/node_rigid_variable/node_rigid_variable.gml @@ -13,32 +13,32 @@ function Node_Rigid_Variable(_x, _y, _group = noone) : Node(_x, _y, _group) cons input_display_list = [ 0 ]; - outputs[0] = nodeValue_Output("Positions", self, VALUE_TYPE.float, [ 0, 0 ] ) + newOutput(0, nodeValue_Output("Positions", self, VALUE_TYPE.float, [ 0, 0 ] )) .setDisplay(VALUE_DISPLAY.vector) .setVisible(false); - outputs[1] = nodeValue_Output("Scales", self, VALUE_TYPE.float, [ 0, 0 ] ) + newOutput(1, nodeValue_Output("Scales", self, VALUE_TYPE.float, [ 0, 0 ] )) .setDisplay(VALUE_DISPLAY.vector) .setVisible(false); - outputs[2] = nodeValue_Output("Rotations", self, VALUE_TYPE.float, 0 ) + newOutput(2, nodeValue_Output("Rotations", self, VALUE_TYPE.float, 0 )) .setVisible(false); - outputs[3] = nodeValue_Output("Blends", self, VALUE_TYPE.color, 0 ) + newOutput(3, nodeValue_Output("Blends", self, VALUE_TYPE.color, 0 )) .setVisible(false); - outputs[4] = nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0 ) + newOutput(4, nodeValue_Output("Alpha", self, VALUE_TYPE.float, 0 )) .setVisible(false); - outputs[5] = nodeValue_Output("Velocity", self, VALUE_TYPE.float, [ 0, 0 ] ) + newOutput(5, nodeValue_Output("Velocity", self, VALUE_TYPE.float, [ 0, 0 ] )) .setDisplay(VALUE_DISPLAY.vector) .setVisible(false); - outputs[6] = nodeValue_Output("Center of mass", self, VALUE_TYPE.float, [ 0, 0 ] ) + newOutput(6, nodeValue_Output("Center of mass", self, VALUE_TYPE.float, [ 0, 0 ] )) .setDisplay(VALUE_DISPLAY.vector) .setVisible(false); - outputs[7] = nodeValue_Output("Velocity magnitude", self, VALUE_TYPE.float, 0 ) + newOutput(7, nodeValue_Output("Velocity magnitude", self, VALUE_TYPE.float, 0 )) .setDisplay(VALUE_DISPLAY.vector) .setVisible(false); diff --git a/scripts/node_rm_cloud/node_rm_cloud.gml b/scripts/node_rm_cloud/node_rm_cloud.gml index 78f28ae20..0574327ba 100644 --- a/scripts/node_rm_cloud/node_rm_cloud.gml +++ b/scripts/node_rm_cloud/node_rm_cloud.gml @@ -34,7 +34,7 @@ function Node_RM_Cloud(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(13, nodeValue_Gradient("Colors", self, new gradientObject([ cola(c_black), cola(c_white) ]))) - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Transform", false], 1, 2, 3, diff --git a/scripts/node_rm_combine/node_rm_combine.gml b/scripts/node_rm_combine/node_rm_combine.gml index f13b6e7a1..efa926900 100644 --- a/scripts/node_rm_combine/node_rm_combine.gml +++ b/scripts/node_rm_combine/node_rm_combine.gml @@ -52,9 +52,9 @@ function Node_RM_Combine(_x, _y, _group = noone) : Node_RM(_x, _y, _group) const newInput(18, nodeValue_Bool("Env Interpolation", self, false)); - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Shape Data", self, VALUE_TYPE.sdf, noone); + newOutput(1, nodeValue_Output("Shape Data", self, VALUE_TYPE.sdf, noone)); input_display_list = [ 0, ["Combine", false], 15, 16, 13, 14, diff --git a/scripts/node_rm_primitive/node_rm_primitive.gml b/scripts/node_rm_primitive/node_rm_primitive.gml index f96dc884e..a7e193f69 100644 --- a/scripts/node_rm_primitive/node_rm_primitive.gml +++ b/scripts/node_rm_primitive/node_rm_primitive.gml @@ -145,9 +145,9 @@ function Node_RM_Primitive(_x, _y, _group = noone) : Node_RM(_x, _y, _group) con newInput(50, nodeValue_Bool("Texture Interpolation", self, false)); - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Shape Data", self, VALUE_TYPE.sdf, noone); + newOutput(1, nodeValue_Output("Shape Data", self, VALUE_TYPE.sdf, noone)); input_display_list = [ 0, ["Primitive", false], 1, 21, 22, 23, 24, 25, 26, 27, 28, 39, 40, 41, diff --git a/scripts/node_rm_render/node_rm_render.gml b/scripts/node_rm_render/node_rm_render.gml index 6c3b2d988..5db4f0c32 100644 --- a/scripts/node_rm_render/node_rm_render.gml +++ b/scripts/node_rm_render/node_rm_render.gml @@ -42,7 +42,7 @@ function Node_RM_Render(_x, _y, _group = noone) : Node_RM(_x, _y, _group) constr newInput(14, nodeValue_Bool("Env Interpolation", self, false)); - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, 13, ["Camera", false], 11, 12, 1, 2, 3, 4, 5, diff --git a/scripts/node_rm_terrain/node_rm_terrain.gml b/scripts/node_rm_terrain/node_rm_terrain.gml index eeeb00da1..538e72cd1 100644 --- a/scripts/node_rm_terrain/node_rm_terrain.gml +++ b/scripts/node_rm_terrain/node_rm_terrain.gml @@ -38,7 +38,7 @@ function Node_RM_Terrain(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(15, nodeValue_Float("Shadow", self, 0.2)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Extrusion", false], 1, 9, 10, diff --git a/scripts/node_sampler/node_sampler.gml b/scripts/node_sampler/node_sampler.gml index d5045b48f..0024910a5 100644 --- a/scripts/node_sampler/node_sampler.gml +++ b/scripts/node_sampler/node_sampler.gml @@ -12,7 +12,7 @@ function Node_Sampler(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(3, nodeValue_Bool("Alpha", self, false)); - outputs[0] = nodeValue_Output("Color", self, VALUE_TYPE.color, c_white); + newOutput(0, nodeValue_Output("Color", self, VALUE_TYPE.color, c_white)); static getPreviewValues = function() { return getInputData(0); } diff --git a/scripts/node_scale/node_scale.gml b/scripts/node_scale/node_scale.gml index 9ae34e646..d8dfbca85 100644 --- a/scripts/node_scale/node_scale.gml +++ b/scripts/node_scale/node_scale.gml @@ -17,7 +17,7 @@ function Node_Scale(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(5, nodeValue_Bool("Scale atlas position", self, true)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 4, ["Surfaces", true], 0, diff --git a/scripts/node_scale_algo/node_scale_algo.gml b/scripts/node_scale_algo/node_scale_algo.gml index 74d4a8682..8b6e8ffdf 100644 --- a/scripts/node_scale_algo/node_scale_algo.gml +++ b/scripts/node_scale_algo/node_scale_algo.gml @@ -30,7 +30,7 @@ function Node_Scale_Algo(_x, _y, _group = noone) : Node_Processor(_x, _y, _group newInput(5, nodeValue_Float("Scale", self, 4)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 3, ["Surfaces", false], 0, diff --git a/scripts/node_scatter/node_scatter.gml b/scripts/node_scatter/node_scatter.gml index 568b81341..883fed497 100644 --- a/scripts/node_scatter/node_scatter.gml +++ b/scripts/node_scatter/node_scatter.gml @@ -110,9 +110,9 @@ function Node_Scatter(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, []) + newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, [])) .setVisible(false) .rejectArrayProcess(); diff --git a/scripts/node_scatter_points/node_scatter_points.gml b/scripts/node_scatter_points/node_scatter_points.gml index 67892db04..42cb4f70d 100644 --- a/scripts/node_scatter_points/node_scatter_points.gml +++ b/scripts/node_scatter_points/node_scatter_points.gml @@ -42,7 +42,7 @@ function Node_Scatter_Points(_x, _y, _group = noone) : Node(_x, _y, _group) cons ["3D", true, 9], 10, 11 ]; - outputs[0] = nodeValue_Output("Points", self, VALUE_TYPE.float, [ ]) + newOutput(0, nodeValue_Output("Points", self, VALUE_TYPE.float, [ ])) .setDisplay(VALUE_DISPLAY.vector); static step = function() { diff --git a/scripts/node_sdf/node_sdf.gml b/scripts/node_sdf/node_sdf.gml index 41f76aa6c..e44575563 100644 --- a/scripts/node_sdf/node_sdf.gml +++ b/scripts/node_sdf/node_sdf.gml @@ -15,7 +15,7 @@ function Node_SDF(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) const newInput(5, nodeValue_Bool("Invert", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_segment_filter/node_segment_filter.gml b/scripts/node_segment_filter/node_segment_filter.gml index 1b48ef06e..eb2b3b430 100644 --- a/scripts/node_segment_filter/node_segment_filter.gml +++ b/scripts/node_segment_filter/node_segment_filter.gml @@ -13,7 +13,7 @@ function Node_Segment_Filter(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(3, nodeValue_Bool("Both side", self, true)); - outputs[0] = nodeValue_Output("Segments", self, VALUE_TYPE.float, [[]]) + newOutput(0, nodeValue_Output("Segments", self, VALUE_TYPE.float, [[]])) .setDisplay(VALUE_DISPLAY.vector) .setArrayDepth(2); diff --git a/scripts/node_seperate_shape/node_seperate_shape.gml b/scripts/node_seperate_shape/node_seperate_shape.gml index f3cac612f..9eb3482a8 100644 --- a/scripts/node_seperate_shape/node_seperate_shape.gml +++ b/scripts/node_seperate_shape/node_seperate_shape.gml @@ -19,9 +19,9 @@ function Node_Seperate_Shape(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(5, nodeValue_Enum_Button("Mode", self, 0 , [ "Greyscale", "Alpha" ] )) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas", self, VALUE_TYPE.surface, []); + newOutput(1, nodeValue_Output("Atlas", self, VALUE_TYPE.surface, [])); input_display_list = [ ["Shape", false], 0, 5, 1, 4, diff --git a/scripts/node_sequence_anim/node_sequence_anim.gml b/scripts/node_sequence_anim/node_sequence_anim.gml index 79a4b0044..4185d88d5 100644 --- a/scripts/node_sequence_anim/node_sequence_anim.gml +++ b/scripts/node_sequence_anim/node_sequence_anim.gml @@ -15,7 +15,7 @@ function Node_Sequence_Anim(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(3, nodeValue_Enum_Scroll("Overflow", self, 0, [ "Hold", "Loop", "Ping Pong", "Empty" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); sequence_surface = noone; sequence_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { diff --git a/scripts/node_shadow/node_shadow.gml b/scripts/node_shadow/node_shadow.gml index 61fc81c89..111d4e395 100644 --- a/scripts/node_shadow/node_shadow.gml +++ b/scripts/node_shadow/node_shadow.gml @@ -31,7 +31,7 @@ function Node_Shadow(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(12, nodeValue_Vec2("Light Position", self, [ 0, 0 ])) .setUnitRef(function(index) { return getDimension(index); }); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 8, ["Surfaces", true], 0, 6, 7, 9, 10, diff --git a/scripts/node_shadow_cast/node_shadow_cast.gml b/scripts/node_shadow_cast/node_shadow_cast.gml index db250c8ca..ab4096b05 100644 --- a/scripts/node_shadow_cast/node_shadow_cast.gml +++ b/scripts/node_shadow_cast/node_shadow_cast.gml @@ -63,9 +63,9 @@ function Node_Shadow_Cast(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(17, nodeValue_Bool("Active", self, true)); active_index = 17; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Light mask", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Light mask", self, VALUE_TYPE.surface, noone)); input_display_list = [ 17, ["Surfaces", true], 0, 1, diff --git a/scripts/node_shape/node_shape.gml b/scripts/node_shape/node_shape.gml index 762e16efb..ab526508e 100644 --- a/scripts/node_shape/node_shape.gml +++ b/scripts/node_shape/node_shape.gml @@ -119,7 +119,7 @@ function Node_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(29, nodeValue("Curve", self, CONNECT_TYPE.input, VALUE_TYPE.curve, CURVE_DEF_01)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", false], 0, 6, diff --git a/scripts/node_shape_map/node_shape_map.gml b/scripts/node_shape_map/node_shape_map.gml index 30bc46e47..2dbc4c959 100644 --- a/scripts/node_shape_map/node_shape_map.gml +++ b/scripts/node_shape_map/node_shape_map.gml @@ -20,7 +20,7 @@ function Node_Shape_Map(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(7, nodeValue_Rotation("Angle", self, 0)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", true], 0, diff --git a/scripts/node_shape_polygon/node_shape_polygon.gml b/scripts/node_shape_polygon/node_shape_polygon.gml index 030f74b30..0813fade5 100644 --- a/scripts/node_shape_polygon/node_shape_polygon.gml +++ b/scripts/node_shape_polygon/node_shape_polygon.gml @@ -67,11 +67,11 @@ function Node_Shape_Polygon(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(23, nodeValue_Palette("Shape Palette", self, [ cola(c_white) ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Mesh", self, VALUE_TYPE.mesh, noone); + newOutput(1, nodeValue_Output("Mesh", self, VALUE_TYPE.mesh, noone)); - outputs[2] = nodeValue_Output("Path", self, VALUE_TYPE.pathnode, noone); + newOutput(2, nodeValue_Output("Path", self, VALUE_TYPE.pathnode, noone)); input_display_list = [ 16, ["Output", false], 0, diff --git a/scripts/node_skew/node_skew.gml b/scripts/node_skew/node_skew.gml index 35cbad029..e1888b9d9 100644 --- a/scripts/node_skew/node_skew.gml +++ b/scripts/node_skew/node_skew.gml @@ -38,7 +38,7 @@ function Node_Skew(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Skew", false], 1, 2, 12, 4, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_smear/node_smear.gml b/scripts/node_smear/node_smear.gml index b13fc36a5..41884760f 100644 --- a/scripts/node_smear/node_smear.gml +++ b/scripts/node_smear/node_smear.gml @@ -47,7 +47,7 @@ function Node_Smear(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con ["Render", false], 15, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); attribute_oversample(); diff --git a/scripts/node_smoke_add/node_smoke_add.gml b/scripts/node_smoke_add/node_smoke_add.gml index 776f13bd7..ac774f835 100644 --- a/scripts/node_smoke_add/node_smoke_add.gml +++ b/scripts/node_smoke_add/node_smoke_add.gml @@ -33,7 +33,7 @@ function Node_Smoke_Add(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) con _prevPos = noone; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); temp_surface = [ surface_create(1, 1) ]; diff --git a/scripts/node_smoke_add_collider/node_smoke_add_collider.gml b/scripts/node_smoke_add_collider/node_smoke_add_collider.gml index 8562d6cfb..5c29b1fca 100644 --- a/scripts/node_smoke_add_collider/node_smoke_add_collider.gml +++ b/scripts/node_smoke_add_collider/node_smoke_add_collider.gml @@ -17,7 +17,7 @@ function Node_Smoke_Add_Collider(_x, _y, _group = noone) : Node_Smoke(_x, _y, _g ["Collider", false], 1, 2, ]; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var _mat = getInputData(1); diff --git a/scripts/node_smoke_apply_velocity/node_smoke_apply_velocity.gml b/scripts/node_smoke_apply_velocity/node_smoke_apply_velocity.gml index 0d64ef69f..f711d86ab 100644 --- a/scripts/node_smoke_apply_velocity/node_smoke_apply_velocity.gml +++ b/scripts/node_smoke_apply_velocity/node_smoke_apply_velocity.gml @@ -20,7 +20,7 @@ function Node_Smoke_Apply_Velocity(_x, _y, _group = noone) : Node_Smoke(_x, _y, ["Velocity", false], 4, 1, 2, 3 ]; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var _mat = getInputData(1); diff --git a/scripts/node_smoke_domain/node_smoke_domain.gml b/scripts/node_smoke_domain/node_smoke_domain.gml index 644e285c1..e4aba1588 100644 --- a/scripts/node_smoke_domain/node_smoke_domain.gml +++ b/scripts/node_smoke_domain/node_smoke_domain.gml @@ -34,7 +34,7 @@ function Node_Smoke_Domain(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) newInput(11, nodeValue_Bool("Wrap", self, false)); - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); input_display_list = [ ["Domain", false], 0, 11, 1, diff --git a/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml b/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml index 3e9a98e7e..d424fe796 100644 --- a/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml +++ b/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml @@ -4,7 +4,7 @@ function Node_Smoke_Domain_Queue(_x, _y, _group = noone) : Node_Smoke(_x, _y, _g manual_ungroupable = false; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_smoke_render/node_smoke_render.gml b/scripts/node_smoke_render/node_smoke_render.gml index a64368336..d56b6308c 100644 --- a/scripts/node_smoke_render/node_smoke_render.gml +++ b/scripts/node_smoke_render/node_smoke_render.gml @@ -22,9 +22,9 @@ function Node_Smoke_Render(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) ["Render", false], 4, 1, 2, 3, ]; - outputs[0] = nodeValue_Output("Smoke", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Smoke", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Domain", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Domain", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_smoke_repulse/node_smoke_repulse.gml b/scripts/node_smoke_repulse/node_smoke_repulse.gml index 27f332371..dc2b981e3 100644 --- a/scripts/node_smoke_repulse/node_smoke_repulse.gml +++ b/scripts/node_smoke_repulse/node_smoke_repulse.gml @@ -21,7 +21,7 @@ function Node_Smoke_Repulse(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) ["Repulse", false], 4, 1, 2, 3 ]; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var _pos = getInputData(1); diff --git a/scripts/node_smoke_turbulence/node_smoke_turbulence.gml b/scripts/node_smoke_turbulence/node_smoke_turbulence.gml index 62a1d8741..60fd3e90f 100644 --- a/scripts/node_smoke_turbulence/node_smoke_turbulence.gml +++ b/scripts/node_smoke_turbulence/node_smoke_turbulence.gml @@ -25,7 +25,7 @@ function Node_Smoke_Turbulence(_x, _y, _group = noone) : Node_Smoke(_x, _y, _gro ["Turbulence", false], 5, 1, 2, 4, 3 ]; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { inputs[1].drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny); diff --git a/scripts/node_smoke_update/node_smoke_update.gml b/scripts/node_smoke_update/node_smoke_update.gml index 06bebbfcc..877bec178 100644 --- a/scripts/node_smoke_update/node_smoke_update.gml +++ b/scripts/node_smoke_update/node_smoke_update.gml @@ -16,7 +16,7 @@ function Node_Smoke_Update(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) ["Update", false], 1, ] - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); static update = function(frame = CURRENT_FRAME) { if(!PROJECT.animator.is_playing) return; diff --git a/scripts/node_smoke_vortex/node_smoke_vortex.gml b/scripts/node_smoke_vortex/node_smoke_vortex.gml index d1da374ac..921c5ae04 100644 --- a/scripts/node_smoke_vortex/node_smoke_vortex.gml +++ b/scripts/node_smoke_vortex/node_smoke_vortex.gml @@ -24,8 +24,8 @@ function Node_Smoke_Vortex(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) ["Vortex", false], 5, 1, 2, 3, 4 ]; - outputs[0] = nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone); - outputs[1] = nodeValue_Output("Domain", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Domain", self, VALUE_TYPE.sdomain, noone)); + newOutput(1, nodeValue_Output("Domain", self, VALUE_TYPE.surface, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var _pos = getInputData(1); diff --git a/scripts/node_solid/node_solid.gml b/scripts/node_solid/node_solid.gml index bb796ac6c..c87a72bdd 100644 --- a/scripts/node_solid/node_solid.gml +++ b/scripts/node_solid/node_solid.gml @@ -11,7 +11,7 @@ function Node_Solid(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con newInput(4, nodeValue_Bool("Use mask dimension", self, true)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", false], 0, 3, 4, diff --git a/scripts/node_spherize/node_spherize.gml b/scripts/node_spherize/node_spherize.gml index d27a913d1..69ad767c7 100644 --- a/scripts/node_spherize/node_spherize.gml +++ b/scripts/node_spherize/node_spherize.gml @@ -42,7 +42,7 @@ function Node_Spherize(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(13, nodeValue_Float("Trim edge", self, 0)) .setDisplay(VALUE_DISPLAY.slider) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, 8, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_spout_send/node_spout_send.gml b/scripts/node_spout_send/node_spout_send.gml index 255734a96..67fb25e85 100644 --- a/scripts/node_spout_send/node_spout_send.gml +++ b/scripts/node_spout_send/node_spout_send.gml @@ -5,7 +5,7 @@ function Node_Spout_Send(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(1, nodeValue_Surface("Surface", self)); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone) + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)) .setVisible(false); spoutIndex = spoutSenderInit(); diff --git a/scripts/node_sprite_stack/node_sprite_stack.gml b/scripts/node_sprite_stack/node_sprite_stack.gml index 1cedffb8b..5b406e5ce 100644 --- a/scripts/node_sprite_stack/node_sprite_stack.gml +++ b/scripts/node_sprite_stack/node_sprite_stack.gml @@ -32,7 +32,7 @@ function Node_Sprite_Stack(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(12, nodeValue_Float("Array process", self, 1)) .setDisplay(VALUE_DISPLAY.enum_scroll, [ "Individual", "Combined" ]); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surface", false], 0, 1, 12, diff --git a/scripts/node_stack/node_stack.gml b/scripts/node_stack/node_stack.gml index a4ec563ac..24654f144 100644 --- a/scripts/node_stack/node_stack.gml +++ b/scripts/node_stack/node_stack.gml @@ -15,9 +15,9 @@ function Node_Stack(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(3, nodeValue_Padding("Padding", self, [ 0, 0, 0, 0 ])) .rejectArray(); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, []); + newOutput(1, nodeValue_Output("Atlas data", self, VALUE_TYPE.surface, [])); temp_surface = [ noone, noone ]; diff --git a/scripts/node_stagger/node_stagger.gml b/scripts/node_stagger/node_stagger.gml index 01429be85..3d4006409 100644 --- a/scripts/node_stagger/node_stagger.gml +++ b/scripts/node_stagger/node_stagger.gml @@ -11,7 +11,7 @@ function Node_Stagger(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(4, nodeValue_Enum_Button("Overflow", self, 0, [ "Hide", "Clamp" ])); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0, ["Stagger", false], 3, 1, 2, 4, diff --git a/scripts/node_statistic/node_statistic.gml b/scripts/node_statistic/node_statistic.gml index 95bdd642a..a55eddc4e 100644 --- a/scripts/node_statistic/node_statistic.gml +++ b/scripts/node_statistic/node_statistic.gml @@ -43,7 +43,7 @@ function Node_Statistic(_x, _y, _group = noone) : Node(_x, _y, _group) construct setDynamicInput(1, true, VALUE_TYPE.float); - outputs[0] = nodeValue_Output("Statistic", self, VALUE_TYPE.float, -1); + newOutput(0, nodeValue_Output("Statistic", self, VALUE_TYPE.float, -1)); static onValueUpdate = function(index = 0) { if(index != 0) return; diff --git a/scripts/node_strand_collision/node_strand_collision.gml b/scripts/node_strand_collision/node_strand_collision.gml index 022d71272..ccb9e21d0 100644 --- a/scripts/node_strand_collision/node_strand_collision.gml +++ b/scripts/node_strand_collision/node_strand_collision.gml @@ -12,7 +12,7 @@ function Node_Strand_Collision(_x, _y, _group = noone) : Node(_x, _y, _group) co newInput(1, nodeValue("Collision mesh", self, CONNECT_TYPE.input, VALUE_TYPE.mesh, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone); + newOutput(0, nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone)); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { var _msh = getInputData(1); diff --git a/scripts/node_strand_create/node_strand_create.gml b/scripts/node_strand_create/node_strand_create.gml index 32b6a723b..6adcfa31f 100644 --- a/scripts/node_strand_create/node_strand_create.gml +++ b/scripts/node_strand_create/node_strand_create.gml @@ -55,7 +55,7 @@ function Node_Strand_Create(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(17, nodeValue_Vec2("Root strength", self, [-1, -1])) .setTooltip("The force required to break strand from its root. Set to -1 to make strand infinitely strong."); - outputs[0] = nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone); + newOutput(0, nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone)); input_display_list = [ 10, ["Generation", false], 0, 1, 5, 6, 7, 13, 14, 15, diff --git a/scripts/node_strand_gravity/node_strand_gravity.gml b/scripts/node_strand_gravity/node_strand_gravity.gml index b8dc16061..53d3eb327 100644 --- a/scripts/node_strand_gravity/node_strand_gravity.gml +++ b/scripts/node_strand_gravity/node_strand_gravity.gml @@ -13,7 +13,7 @@ function Node_Strand_Gravity(_x, _y, _group = noone) : Node(_x, _y, _group) cons newInput(2, nodeValue_Rotation("Direction", self, 0)); - outputs[0] = nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone); + newOutput(0, nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone)); static update = function(frame = CURRENT_FRAME) { var _str = getInputData(0); diff --git a/scripts/node_strand_render/node_strand_render.gml b/scripts/node_strand_render/node_strand_render.gml index 514ae52f0..38c352935 100644 --- a/scripts/node_strand_render/node_strand_render.gml +++ b/scripts/node_strand_render/node_strand_render.gml @@ -26,7 +26,7 @@ function Node_Strand_Render(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(8, nodeValue_Int("Update quality", self, 4)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 6, 8, ["Output", false], 0, diff --git a/scripts/node_strand_render_texture/node_strand_render_texture.gml b/scripts/node_strand_render_texture/node_strand_render_texture.gml index 5d3e382e6..14473dda8 100644 --- a/scripts/node_strand_render_texture/node_strand_render_texture.gml +++ b/scripts/node_strand_render_texture/node_strand_render_texture.gml @@ -20,7 +20,7 @@ function Node_Strand_Render_Texture(_x, _y, _group = noone) : Node(_x, _y, _grou newInput(5, nodeValue_Float("Seed", self, seed_random(6))) .setDisplay(VALUE_DISPLAY._default, { side_button : button(function() { randomize(); inputs[5].setValue(seed_random(6)); }).setIcon(THEME.icon_random, 0, COLORS._main_icon) }); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 5, ["Output", false], 0, diff --git a/scripts/node_strand_update/node_strand_update.gml b/scripts/node_strand_update/node_strand_update.gml index 8cc1abd46..2c020766f 100644 --- a/scripts/node_strand_update/node_strand_update.gml +++ b/scripts/node_strand_update/node_strand_update.gml @@ -11,7 +11,7 @@ function Node_Strand_Update(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(1, nodeValue_Int("Step", self, 4)) - outputs[0] = nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone); + newOutput(0, nodeValue_Output("Strand", self, VALUE_TYPE.strands, noone)); static update = function(frame = CURRENT_FRAME) { var _str = getInputData(0); diff --git a/scripts/node_string/node_string.gml b/scripts/node_string/node_string.gml index 08d913afe..a91cfbb2e 100644 --- a/scripts/node_string/node_string.gml +++ b/scripts/node_string/node_string.gml @@ -4,7 +4,7 @@ function Node_String(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(0, nodeValue_Text("Text", self, "")); - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static processData = function(_output, _data, _index = 0) { return string(_data[0]); diff --git a/scripts/node_string_get_char/node_string_get_char.gml b/scripts/node_string_get_char/node_string_get_char.gml index 2fc9b29ca..617bbc2e1 100644 --- a/scripts/node_string_get_char/node_string_get_char.gml +++ b/scripts/node_string_get_char/node_string_get_char.gml @@ -9,7 +9,7 @@ function Node_String_Get_Char(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(2, nodeValue_Int("Amount", self, 1)); - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static processData = function(_output, _data, _index = 0) { return string_copy(_data[0], _data[1], _data[2]); diff --git a/scripts/node_string_join/node_string_join.gml b/scripts/node_string_join/node_string_join.gml index 9e4dad7ec..a1b84b9d0 100644 --- a/scripts/node_string_join/node_string_join.gml +++ b/scripts/node_string_join/node_string_join.gml @@ -11,7 +11,7 @@ function Node_String_Join(_x, _y, _group = noone) : Node(_x, _y, _group) constru inputs[1].editWidget.format = TEXT_AREA_FORMAT.delimiter; - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static update = function() { var _arr = getInputData(0); diff --git a/scripts/node_string_length/node_string_length.gml b/scripts/node_string_length/node_string_length.gml index 251d4ff64..e46991991 100644 --- a/scripts/node_string_length/node_string_length.gml +++ b/scripts/node_string_length/node_string_length.gml @@ -8,7 +8,7 @@ function Node_String_Length(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(1, nodeValue_Enum_Scroll("Mode", self, 0, ["Character", "Word"])); - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static processData = function(_output, _data, _index = 0) { if(_data[1] == 0) diff --git a/scripts/node_string_merge/node_string_merge.gml b/scripts/node_string_merge/node_string_merge.gml index 2ebbc3854..1e4ce4a28 100644 --- a/scripts/node_string_merge/node_string_merge.gml +++ b/scripts/node_string_merge/node_string_merge.gml @@ -3,7 +3,7 @@ function Node_String_Merge(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro setDimension(96, 48); - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static createNewInput = function() { var index = array_length(inputs); diff --git a/scripts/node_string_regex_match/node_string_regex_match.gml b/scripts/node_string_regex_match/node_string_regex_match.gml index c6a48eae7..129336eb3 100644 --- a/scripts/node_string_regex_match/node_string_regex_match.gml +++ b/scripts/node_string_regex_match/node_string_regex_match.gml @@ -8,7 +8,7 @@ function Node_String_Regex_Match(_x, _y, _group = noone) : Node_Processor(_x, _y newInput(1, nodeValue_Text("Regex", self, "")); - outputs[0] = nodeValue_Output("Results", self, VALUE_TYPE.boolean, false); + newOutput(0, nodeValue_Output("Results", self, VALUE_TYPE.boolean, false)); input_display_list = [ 0, 1, diff --git a/scripts/node_string_regex_replace/node_string_regex_replace.gml b/scripts/node_string_regex_replace/node_string_regex_replace.gml index 74a93750a..f1424519e 100644 --- a/scripts/node_string_regex_replace/node_string_regex_replace.gml +++ b/scripts/node_string_regex_replace/node_string_regex_replace.gml @@ -10,7 +10,7 @@ function Node_String_Regex_Replace(_x, _y, _group = noone) : Node_Processor(_x, newInput(2, nodeValue_Text("Replacement", self, "")); - outputs[0] = nodeValue_Output("Results", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Results", self, VALUE_TYPE.text, "")); input_display_list = [ 0, 1, 2, diff --git a/scripts/node_string_regex_search/node_string_regex_search.gml b/scripts/node_string_regex_search/node_string_regex_search.gml index fe2775ffa..610015428 100644 --- a/scripts/node_string_regex_search/node_string_regex_search.gml +++ b/scripts/node_string_regex_search/node_string_regex_search.gml @@ -8,7 +8,7 @@ function Node_String_Regex_Search(_x, _y, _group = noone) : Node_Processor(_x, _ newInput(1, nodeValue_Text("Regex", self, "")); - outputs[0] = nodeValue_Output("Results", self, VALUE_TYPE.text, []); + newOutput(0, nodeValue_Output("Results", self, VALUE_TYPE.text, [])); input_display_list = [ 0, 1, diff --git a/scripts/node_string_split/node_string_split.gml b/scripts/node_string_split/node_string_split.gml index 117bce425..f37ad9a4b 100644 --- a/scripts/node_string_split/node_string_split.gml +++ b/scripts/node_string_split/node_string_split.gml @@ -7,7 +7,7 @@ function Node_String_Split(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro newInput(1, nodeValue_Text("Delimiter", self, " ", "Character that used to split text,\nleave blank to create character array.")); inputs[1].editWidget.format = TEXT_AREA_FORMAT.delimiter; - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static processData = function(_output, _data, _index = 0) { if(_data[1] == "") diff --git a/scripts/node_string_trim/node_string_trim.gml b/scripts/node_string_trim/node_string_trim.gml index c3f1adbb5..6f76bb850 100644 --- a/scripts/node_string_trim/node_string_trim.gml +++ b/scripts/node_string_trim/node_string_trim.gml @@ -15,7 +15,7 @@ function Node_String_Trim(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(4, nodeValue_Enum_Scroll("Mode", self, 0, ["Counter", "Progress"])) .setTooltip("Set to progress to use ratio, where 0 means no change and 1 means the entire length of the text."); - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); input_display_list = [ ["Text", false], 0, diff --git a/scripts/node_stripe/node_stripe.gml b/scripts/node_stripe/node_stripe.gml index f3d8532ab..16af2706c 100644 --- a/scripts/node_stripe/node_stripe.gml +++ b/scripts/node_stripe/node_stripe.gml @@ -55,7 +55,7 @@ function Node_Stripe(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(19, nodeValueSeed(self, VALUE_TYPE.float)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 19, ["Output", true], 0, diff --git a/scripts/node_struct/node_struct.gml b/scripts/node_struct/node_struct.gml index d3564e628..bcee6eec0 100644 --- a/scripts/node_struct/node_struct.gml +++ b/scripts/node_struct/node_struct.gml @@ -20,7 +20,7 @@ function Node_Struct(_x, _y, _group = noone) : Node(_x, _y, _group) constructor input_display_list = [ size_adjust_tool, ]; - outputs[0] = nodeValue_Output("Struct", self, VALUE_TYPE.struct, {}); + newOutput(0, nodeValue_Output("Struct", self, VALUE_TYPE.struct, {})); #region //////////////////////////////// Dynamic IO //////////////////////////////// diff --git a/scripts/node_struct_get/node_struct_get.gml b/scripts/node_struct_get/node_struct_get.gml index d8bf89908..8c31dde21 100644 --- a/scripts/node_struct_get/node_struct_get.gml +++ b/scripts/node_struct_get/node_struct_get.gml @@ -8,7 +8,7 @@ function Node_Struct_Get(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(1, nodeValue_Text("Key", self, "")); - outputs[0] = nodeValue_Output("Value", self, VALUE_TYPE.struct, {}); + newOutput(0, nodeValue_Output("Value", self, VALUE_TYPE.struct, {})); static getStructValue = function(str, keys) { var _pnt = str, val = 0; diff --git a/scripts/node_struct_json_parse/node_struct_json_parse.gml b/scripts/node_struct_json_parse/node_struct_json_parse.gml index 761759dad..f6236ce4c 100644 --- a/scripts/node_struct_json_parse/node_struct_json_parse.gml +++ b/scripts/node_struct_json_parse/node_struct_json_parse.gml @@ -5,7 +5,7 @@ function Node_Struct_JSON_Parse(_x, _y, _group = noone) : Node(_x, _y, _group) c newInput(0, nodeValue_Text("JSON string", self, "")) .setVisible(true, true); - outputs[0] = nodeValue_Output("Struct", self, VALUE_TYPE.struct, {} ); + newOutput(0, nodeValue_Output("Struct", self, VALUE_TYPE.struct, {} )); static update = function(frame = CURRENT_FRAME) { var _str = getInputData(0); diff --git a/scripts/node_struct_set/node_struct_set.gml b/scripts/node_struct_set/node_struct_set.gml index cf9994cac..e767e2c58 100644 --- a/scripts/node_struct_set/node_struct_set.gml +++ b/scripts/node_struct_set/node_struct_set.gml @@ -10,7 +10,7 @@ function Node_Struct_Set(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(2, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)); - outputs[0] = nodeValue_Output("Struct", self, VALUE_TYPE.struct, {}); + newOutput(0, nodeValue_Output("Struct", self, VALUE_TYPE.struct, {})); static update = function() { var str = getInputData(0); diff --git a/scripts/node_surface_data/node_surface_data.gml b/scripts/node_surface_data/node_surface_data.gml index 076ac7578..8125dddfb 100644 --- a/scripts/node_surface_data/node_surface_data.gml +++ b/scripts/node_surface_data/node_surface_data.gml @@ -4,10 +4,10 @@ function Node_Surface_data(_x, _y, _group = noone) : Node(_x, _y, _group) constr newInput(0, nodeValue_Surface("Surface", self)); - outputs[0] = nodeValue_Output("Dimension", self, VALUE_TYPE.integer, [ 1, 1 ]) + newOutput(0, nodeValue_Output("Dimension", self, VALUE_TYPE.integer, [ 1, 1 ])) .setDisplay(VALUE_DISPLAY.vector); - outputs[1] = nodeValue_Output("Array length", self, VALUE_TYPE.integer, 0); + newOutput(1, nodeValue_Output("Array length", self, VALUE_TYPE.integer, 0)); setDimension(96, 48); diff --git a/scripts/node_surface_from_buffer/node_surface_from_buffer.gml b/scripts/node_surface_from_buffer/node_surface_from_buffer.gml index 8d5d6c3f9..c3e71c621 100644 --- a/scripts/node_surface_from_buffer/node_surface_from_buffer.gml +++ b/scripts/node_surface_from_buffer/node_surface_from_buffer.gml @@ -4,7 +4,7 @@ function Node_Surface_From_Buffer(_x, _y, _group = noone) : Node_Processor(_x, _ newInput(0, nodeValue_Buffer("Buffer", self, noone)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); static processData = function(_outSurf, _data, _output_index, _array_index) { var _buff = _data[0]; diff --git a/scripts/node_surface_from_color/node_surface_from_color.gml b/scripts/node_surface_from_color/node_surface_from_color.gml index 14c48c594..2968969ac 100644 --- a/scripts/node_surface_from_color/node_surface_from_color.gml +++ b/scripts/node_surface_from_color/node_surface_from_color.gml @@ -3,7 +3,7 @@ function Node_Surface_From_Color(_x, _y, _group = noone) : Node_Processor(_x, _y newInput(0, nodeValue_Palette("Color", self, array_clone(DEF_PALETTE))); - outputs[0] = nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface", self, VALUE_TYPE.surface, noone)); static processData = function(_outSurf, _data, _output_index, _array_index) { var _col = _data[0]; diff --git a/scripts/node_surface_replace/node_surface_replace.gml b/scripts/node_surface_replace/node_surface_replace.gml index af4ebdeca..0fc6cda82 100644 --- a/scripts/node_surface_replace/node_surface_replace.gml +++ b/scripts/node_surface_replace/node_surface_replace.gml @@ -26,7 +26,7 @@ function Node_Surface_Replace(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(9, nodeValue_Bool("Replace Empty", self, false)) - outputs[0] = nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface Out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 0, 1, 2, 7, 8, diff --git a/scripts/node_surface_to_buffer/node_surface_to_buffer.gml b/scripts/node_surface_to_buffer/node_surface_to_buffer.gml index 8073cecec..935d7463b 100644 --- a/scripts/node_surface_to_buffer/node_surface_to_buffer.gml +++ b/scripts/node_surface_to_buffer/node_surface_to_buffer.gml @@ -3,7 +3,7 @@ function Node_Surface_To_Buffer(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(0, nodeValue_Surface("Surface", self)); - outputs[0] = nodeValue_Output("Buffer", self, VALUE_TYPE.buffer, noone); + newOutput(0, nodeValue_Output("Buffer", self, VALUE_TYPE.buffer, noone)); static processData = function(_outSurf, _data, _output_index, _array_index) { var _surf = _data[0]; diff --git a/scripts/node_surface_to_color/node_surface_to_color.gml b/scripts/node_surface_to_color/node_surface_to_color.gml index d74082640..3fa26a15d 100644 --- a/scripts/node_surface_to_color/node_surface_to_color.gml +++ b/scripts/node_surface_to_color/node_surface_to_color.gml @@ -3,7 +3,7 @@ function Node_Surface_To_Color(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(0, nodeValue_Surface("Surface", self)); - outputs[0] = nodeValue_Output("Colors", self, VALUE_TYPE.color, []) + newOutput(0, nodeValue_Output("Colors", self, VALUE_TYPE.color, [])) .setDisplay(VALUE_DISPLAY.palette); static processData = function(_outSurf, _data, _output_index, _array_index) { diff --git a/scripts/node_svg/node_svg.gml b/scripts/node_svg/node_svg.gml index b6e3f0026..9812fbc88 100644 --- a/scripts/node_svg/node_svg.gml +++ b/scripts/node_svg/node_svg.gml @@ -16,9 +16,9 @@ function Node_SVG(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(1, nodeValue_Float("Scale", self, 1)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("SVG Struct", self, VALUE_TYPE.struct, {}); + newOutput(1, nodeValue_Output("SVG Struct", self, VALUE_TYPE.struct, {})); attribute_surface_depth(); diff --git a/scripts/node_switch/node_switch.gml b/scripts/node_switch/node_switch.gml index 2d44e7ee8..0501fc6f7 100644 --- a/scripts/node_switch/node_switch.gml +++ b/scripts/node_switch/node_switch.gml @@ -25,7 +25,7 @@ function Node_Switch(_x, _y, _group = noone) : Node(_x, _y, _group) constructor return _h; }); #endregion - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.any, 0); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.any, 0)); input_display_list = [ 0, 1, ["Cases", false], size_adjust_tool diff --git a/scripts/node_terminal_trigger/node_terminal_trigger.gml b/scripts/node_terminal_trigger/node_terminal_trigger.gml index e651384cf..7446f23b7 100644 --- a/scripts/node_terminal_trigger/node_terminal_trigger.gml +++ b/scripts/node_terminal_trigger/node_terminal_trigger.gml @@ -4,7 +4,7 @@ function Node_Terminal_Trigger(_x, _y, _group = noone) : Node(_x, _y, _group) co draw_padding = 8; - outputs[0] = nodeValue_Output("Terminal", self, VALUE_TYPE.trigger, false ); + newOutput(0, nodeValue_Output("Terminal", self, VALUE_TYPE.trigger, false )); static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) { var bbox = drawGetBbox(xx, yy, _s); diff --git a/scripts/node_text/node_text.gml b/scripts/node_text/node_text.gml index 3061a5b98..78e5cb6e8 100644 --- a/scripts/node_text/node_text.gml +++ b/scripts/node_text/node_text.gml @@ -73,7 +73,7 @@ function Node_Text(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons ["Trim", true, 23], 25, 24, 26, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_text_file_read/node_text_file_read.gml b/scripts/node_text_file_read/node_text_file_read.gml index 2d2e76755..2256fb786 100644 --- a/scripts/node_text_file_read/node_text_file_read.gml +++ b/scripts/node_text_file_read/node_text_file_read.gml @@ -33,8 +33,8 @@ function Node_Text_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) cons .setDisplay(VALUE_DISPLAY.path_load, { filter: "any file|*" }) .rejectArray(); - outputs[0] = nodeValue_Output("Content", self, VALUE_TYPE.text, ""); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(0, nodeValue_Output("Content", self, VALUE_TYPE.text, "")); + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); content = ""; diff --git a/scripts/node_texture_remap/node_texture_remap.gml b/scripts/node_texture_remap/node_texture_remap.gml index 97185c57f..2d41dbe71 100644 --- a/scripts/node_texture_remap/node_texture_remap.gml +++ b/scripts/node_texture_remap/node_texture_remap.gml @@ -13,7 +13,7 @@ function Node_Texture_Remap(_x, _y, _group = noone) : Node_Processor(_x, _y, _gr newInput(3, nodeValue_Enum_Button("Dimension Source", self, 0, [ "Surface", "RG Map" ])); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 2, ["Surfaces", false], 0, 1, 3, diff --git a/scripts/node_threshold/node_threshold.gml b/scripts/node_threshold/node_threshold.gml index e1ff2f762..c64ab6009 100644 --- a/scripts/node_threshold/node_threshold.gml +++ b/scripts/node_threshold/node_threshold.gml @@ -41,7 +41,7 @@ function Node_Threshold(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ////////////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 6, 10, ["Surfaces", true], 0, 4, 5, 11, 12, diff --git a/scripts/node_tile/node_tile.gml b/scripts/node_tile/node_tile.gml index 52ad330ec..1965dd901 100644 --- a/scripts/node_tile/node_tile.gml +++ b/scripts/node_tile/node_tile.gml @@ -5,7 +5,7 @@ function Node_Tile(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(1, nodeValue_Surface("Border texture", self)); - outputs[0] = nodeValue_Output("", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("", self, VALUE_TYPE.surface, noone)); input_display_list = [ 0 ]; diff --git a/scripts/node_tile_random/node_tile_random.gml b/scripts/node_tile_random/node_tile_random.gml index f11a7c997..4d0179163 100644 --- a/scripts/node_tile_random/node_tile_random.gml +++ b/scripts/node_tile_random/node_tile_random.gml @@ -9,7 +9,7 @@ function Node_Tile_Random(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou newInput(2, nodeValue_Float("Randomness", self, 0.5)) .setDisplay(VALUE_DISPLAY.slider); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", true], 0, diff --git a/scripts/node_time_remap/node_time_remap.gml b/scripts/node_time_remap/node_time_remap.gml index f88e11b14..e21cd8fb7 100644 --- a/scripts/node_time_remap/node_time_remap.gml +++ b/scripts/node_time_remap/node_time_remap.gml @@ -19,7 +19,7 @@ function Node_Time_Remap(_x, _y, _group = noone) : Node(_x, _y, _group) construc newInput(3, nodeValue_Bool("Loop", self, false)) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", false], 0, 1, diff --git a/scripts/node_to_number/node_to_number.gml b/scripts/node_to_number/node_to_number.gml index 4b7d23837..ae30001c4 100644 --- a/scripts/node_to_number/node_to_number.gml +++ b/scripts/node_to_number/node_to_number.gml @@ -7,7 +7,7 @@ function Node_To_Number(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(0, nodeValue_Text("Text", self, "")) .setVisible(true, true); - outputs[0] = nodeValue_Output("Number", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("Number", self, VALUE_TYPE.float, 0)); static processData = function(_output, _data, _output_index, _array_index = 0) { return toNumber(_data[0]); diff --git a/scripts/node_to_text/node_to_text.gml b/scripts/node_to_text/node_to_text.gml index 83c239fdf..9a42a8b56 100644 --- a/scripts/node_to_text/node_to_text.gml +++ b/scripts/node_to_text/node_to_text.gml @@ -6,7 +6,7 @@ function Node_To_Text(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(0, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, 0)) .setVisible(true, true); - outputs[0] = nodeValue_Output("Text", self, VALUE_TYPE.text, ""); + newOutput(0, nodeValue_Output("Text", self, VALUE_TYPE.text, "")); static processData = function(_output, _data, _output_index, _array_index = 0) { return string(_data[0]); diff --git a/scripts/node_tonemap_ace/node_tonemap_ace.gml b/scripts/node_tonemap_ace/node_tonemap_ace.gml index a3ca2fa20..8fc2da002 100644 --- a/scripts/node_tonemap_ace/node_tonemap_ace.gml +++ b/scripts/node_tonemap_ace/node_tonemap_ace.gml @@ -19,7 +19,7 @@ function Node_Tonemap_ACE(_x, _y, _group = noone) : Node_Processor(_x, _y, _grou ["Surfaces", true], 0, 1, 2, 5, 6, ] - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); attribute_surface_depth(); diff --git a/scripts/node_trail/node_trail.gml b/scripts/node_trail/node_trail.gml index bb344f344..f80c3a2d8 100644 --- a/scripts/node_trail/node_trail.gml +++ b/scripts/node_trail/node_trail.gml @@ -17,9 +17,9 @@ function Node_Trail(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { newInput(6, nodeValue("Alpha over life", self, CONNECT_TYPE.input, VALUE_TYPE.curve, CURVE_DEF_11)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Trail UV", self, VALUE_TYPE.surface, noone); + newOutput(1, nodeValue_Output("Trail UV", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Surfaces", true], 0, diff --git a/scripts/node_transform/node_transform.gml b/scripts/node_transform/node_transform.gml index d86db844d..2e70af394 100644 --- a/scripts/node_transform/node_transform.gml +++ b/scripts/node_transform/node_transform.gml @@ -69,9 +69,9 @@ function Node_Transform(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) ["Echo", true, 12], 13, ]; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); - outputs[1] = nodeValue_Output("Dimension", self, VALUE_TYPE.integer, [ 1, 1 ]) + newOutput(1, nodeValue_Output("Dimension", self, VALUE_TYPE.integer, [ 1, 1 ])) .setDisplay(VALUE_DISPLAY.vector) .setVisible(false); diff --git a/scripts/node_transform_array/node_transform_array.gml b/scripts/node_transform_array/node_transform_array.gml index 1753918db..e08db0092 100644 --- a/scripts/node_transform_array/node_transform_array.gml +++ b/scripts/node_transform_array/node_transform_array.gml @@ -13,7 +13,7 @@ function Node_Transform_Array(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(2, nodeValue_Vec2("Scale", self, [ 1, 1 ] )) .setVisible(true, true); - outputs[0] = nodeValue_Output("Transform", self, VALUE_TYPE.float, [ 0, 0, 0, 1, 1 ]) + newOutput(0, nodeValue_Output("Transform", self, VALUE_TYPE.float, [ 0, 0, 0, 1, 1 ])) .setDisplay(VALUE_DISPLAY.vector); static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) { diff --git a/scripts/node_transform_single/node_transform_single.gml b/scripts/node_transform_single/node_transform_single.gml index 777ddba1c..b48991a94 100644 --- a/scripts/node_transform_single/node_transform_single.gml +++ b/scripts/node_transform_single/node_transform_single.gml @@ -11,7 +11,7 @@ function Node_Transform_Single(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(6, nodeValue_Float("Scale x", self, 1)); newInput(7, nodeValue_Float("Scale y", self, 1)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); static processData = function(_outSurf, _data, _output_index, _array_index) { var pos_x = _data[1]; diff --git a/scripts/node_trigger/node_trigger.gml b/scripts/node_trigger/node_trigger.gml index fd202d4ac..6d34dbcd7 100644 --- a/scripts/node_trigger/node_trigger.gml +++ b/scripts/node_trigger/node_trigger.gml @@ -5,7 +5,7 @@ function Node_Trigger(_x, _y, _group = noone) : Node(_x, _y, _group) constructor newInput(0, nodeValue_Trigger("Trigger", self, false )) .setDisplay(VALUE_DISPLAY.button, { name: "Trigger" }); - outputs[0] = nodeValue_Output("Trigger", self, VALUE_TYPE.trigger, false ); + newOutput(0, nodeValue_Output("Trigger", self, VALUE_TYPE.trigger, false )); insp2UpdateTooltip = "Trigger"; insp2UpdateIcon = [ THEME.sequence_control, 1, COLORS._main_value_positive ]; diff --git a/scripts/node_trigger_bool/node_trigger_bool.gml b/scripts/node_trigger_bool/node_trigger_bool.gml index 307fade81..c318627ac 100644 --- a/scripts/node_trigger_bool/node_trigger_bool.gml +++ b/scripts/node_trigger_bool/node_trigger_bool.gml @@ -10,7 +10,7 @@ function Node_Trigger_Bool(_x, _y, _group = noone) : Node(_x, _y, _group) constr new scrollItem("True to False", s_node_trigger_cond, 2), new scrollItem("Value changed", s_node_trigger_cond, 3), ])); - outputs[0] = nodeValue_Output("Trigger", self, VALUE_TYPE.trigger, false); + newOutput(0, nodeValue_Output("Trigger", self, VALUE_TYPE.trigger, false)); prevVal = false; preview = false; diff --git a/scripts/node_tunnel_out/node_tunnel_out.gml b/scripts/node_tunnel_out/node_tunnel_out.gml index 3d532b479..7cc46df22 100644 --- a/scripts/node_tunnel_out/node_tunnel_out.gml +++ b/scripts/node_tunnel_out/node_tunnel_out.gml @@ -22,7 +22,7 @@ function Node_Tunnel_Out(_x, _y, _group = noone) : Node(_x, _y, _group) construc .setDisplay(VALUE_DISPLAY.text_tunnel) .rejectArray(); - outputs[0] = nodeValue_Output("Value out", self, VALUE_TYPE.any, noone ); + newOutput(0, nodeValue_Output("Value out", self, VALUE_TYPE.any, noone )); insp2UpdateTooltip = "Goto tunnel in"; insp2UpdateIcon = [ THEME.tunnel, 1, c_white ]; diff --git a/scripts/node_twirl/node_twirl.gml b/scripts/node_twirl/node_twirl.gml index d4cb661e5..5a33c8f04 100644 --- a/scripts/node_twirl/node_twirl.gml +++ b/scripts/node_twirl/node_twirl.gml @@ -38,7 +38,7 @@ function Node_Twirl(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con //////////////////////////////////////////////////////////////////////////////////////////// - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 7, 8, ["Surfaces", true], 0, 5, 6, 9, 10, diff --git a/scripts/node_unicode/node_unicode.gml b/scripts/node_unicode/node_unicode.gml index 6de3e9ab3..a936842d6 100644 --- a/scripts/node_unicode/node_unicode.gml +++ b/scripts/node_unicode/node_unicode.gml @@ -7,7 +7,7 @@ function Node_Unicode(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(0, nodeValue_Int("Unicode", self, 64)); - outputs[0] = nodeValue_Output("Character", self, VALUE_TYPE.text, 0); + newOutput(0, nodeValue_Output("Character", self, VALUE_TYPE.text, 0)); static processData = function(_output, _data, index = 0) { return chr(_data[0]); diff --git a/scripts/node_vector2/node_vector2.gml b/scripts/node_vector2/node_vector2.gml index bd925b960..83757a952 100644 --- a/scripts/node_vector2/node_vector2.gml +++ b/scripts/node_vector2/node_vector2.gml @@ -14,7 +14,7 @@ function Node_Vector2(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(3, nodeValue_Enum_Scroll("Display", self, 0, [ "Number", "Coordinate" ])); - outputs[0] = nodeValue_Output("Vector", self, VALUE_TYPE.float, [ 0, 0 ]) + newOutput(0, nodeValue_Output("Vector", self, VALUE_TYPE.float, [ 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); drag_type = 0; diff --git a/scripts/node_vector3/node_vector3.gml b/scripts/node_vector3/node_vector3.gml index 75b908025..3cbf6e89c 100644 --- a/scripts/node_vector3/node_vector3.gml +++ b/scripts/node_vector3/node_vector3.gml @@ -14,7 +14,7 @@ function Node_Vector3(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(3, nodeValue_Bool("Integer", self, false)); - outputs[0] = nodeValue_Output("Vector", self, VALUE_TYPE.float, [ 0, 0, 0 ]) + newOutput(0, nodeValue_Output("Vector", self, VALUE_TYPE.float, [ 0, 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); static step = function() { diff --git a/scripts/node_vector4/node_vector4.gml b/scripts/node_vector4/node_vector4.gml index e2bb06dfb..790f2d989 100644 --- a/scripts/node_vector4/node_vector4.gml +++ b/scripts/node_vector4/node_vector4.gml @@ -17,7 +17,7 @@ function Node_Vector4(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c newInput(4, nodeValue_Bool("Integer", self, false)); - outputs[0] = nodeValue_Output("Vector", self, VALUE_TYPE.float, [ 0, 0, 0, 0 ]) + newOutput(0, nodeValue_Output("Vector", self, VALUE_TYPE.float, [ 0, 0, 0, 0 ])) .setDisplay(VALUE_DISPLAY.vector); static step = function() { diff --git a/scripts/node_vector_cross_2D/node_vector_cross_2D.gml b/scripts/node_vector_cross_2D/node_vector_cross_2D.gml index 88524648a..9f0a38d8c 100644 --- a/scripts/node_vector_cross_2D/node_vector_cross_2D.gml +++ b/scripts/node_vector_cross_2D/node_vector_cross_2D.gml @@ -10,7 +10,7 @@ function Node_Vector_Cross_2D(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(1, nodeValue_Vec2("Point 2", self, [ 0, 0 ])) .setVisible(true, true); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, 0 ); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, 0 )); static processData = function(_output, _data, _output_index, _array_index = 0) { var vec1 = _data[0]; diff --git a/scripts/node_vector_cross_3D/node_vector_cross_3D.gml b/scripts/node_vector_cross_3D/node_vector_cross_3D.gml index f45856e73..bdc4c5be1 100644 --- a/scripts/node_vector_cross_3D/node_vector_cross_3D.gml +++ b/scripts/node_vector_cross_3D/node_vector_cross_3D.gml @@ -10,7 +10,7 @@ function Node_Vector_Cross_3D(_x, _y, _group = noone) : Node_Processor(_x, _y, _ newInput(1, nodeValue_Vec3("Point 2", self, [ 0, 0, 0 ])) .setVisible(true, true); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, [ 0, 0, 0 ] ) + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, [ 0, 0, 0 ] )) .setDisplay(VALUE_DISPLAY.vector); static processData = function(_output, _data, _output_index, _array_index = 0) { diff --git a/scripts/node_vector_dot/node_vector_dot.gml b/scripts/node_vector_dot/node_vector_dot.gml index dc0a864e2..e7546129d 100644 --- a/scripts/node_vector_dot/node_vector_dot.gml +++ b/scripts/node_vector_dot/node_vector_dot.gml @@ -11,7 +11,7 @@ function Node_Vector_Dot(_x, _y, _group = noone) : Node_Processor(_x, _y, _group .setArrayDepth(1) .setVisible(true, true); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, 0 ); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, 0 )); static processData = function(_output, _data, _output_index, _array_index = 0) { var _pnt1 = _data[0]; diff --git a/scripts/node_vector_magnitude/node_vector_magnitude.gml b/scripts/node_vector_magnitude/node_vector_magnitude.gml index 7102ccd11..ba79baf35 100644 --- a/scripts/node_vector_magnitude/node_vector_magnitude.gml +++ b/scripts/node_vector_magnitude/node_vector_magnitude.gml @@ -7,7 +7,7 @@ function Node_Vector_Magnitude(_x, _y, _group = noone) : Node_Processor(_x, _y, .setArrayDepth(1) .setVisible(true, true); - outputs[0] = nodeValue_Output("Magnitude", self, VALUE_TYPE.float, 0 ); + newOutput(0, nodeValue_Output("Magnitude", self, VALUE_TYPE.float, 0 )); static processData = function(_output, _data, _output_index, _array_index = 0) { var _vec = _data[0]; diff --git a/scripts/node_vector_split/node_vector_split.gml b/scripts/node_vector_split/node_vector_split.gml index 130dd6568..5aae034c8 100644 --- a/scripts/node_vector_split/node_vector_split.gml +++ b/scripts/node_vector_split/node_vector_split.gml @@ -11,10 +11,10 @@ function Node_Vector_Split(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro .setArrayDynamic() .setVisible(true, true); - outputs[0] = nodeValue_Output("x", self, VALUE_TYPE.float, 0); - outputs[1] = nodeValue_Output("y", self, VALUE_TYPE.float, 0); - outputs[2] = nodeValue_Output("z", self, VALUE_TYPE.float, 0); - outputs[3] = nodeValue_Output("w", self, VALUE_TYPE.float, 0); + newOutput(0, nodeValue_Output("x", self, VALUE_TYPE.float, 0)); + newOutput(1, nodeValue_Output("y", self, VALUE_TYPE.float, 0)); + newOutput(2, nodeValue_Output("z", self, VALUE_TYPE.float, 0)); + newOutput(3, nodeValue_Output("w", self, VALUE_TYPE.float, 0)); static step = function() { if(inputs[0].value_from == noone) return; diff --git a/scripts/node_vector_swizzle/node_vector_swizzle.gml b/scripts/node_vector_swizzle/node_vector_swizzle.gml index 9b9f6d0cf..541cd7b2f 100644 --- a/scripts/node_vector_swizzle/node_vector_swizzle.gml +++ b/scripts/node_vector_swizzle/node_vector_swizzle.gml @@ -9,7 +9,7 @@ function Node_Vector_Swizzle(_x, _y, _group = noone) : Node_Processor(_x, _y, _g newInput(1, nodeValue_Text("Swizzle", self, "")); - outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, [] ); + newOutput(0, nodeValue_Output("Result", self, VALUE_TYPE.float, [] )); static char_get_index = function(_chr) { switch(string_lower(_chr)) { diff --git a/scripts/node_vignette/node_vignette.gml b/scripts/node_vignette/node_vignette.gml index 71708c788..752cfac41 100644 --- a/scripts/node_vignette/node_vignette.gml +++ b/scripts/node_vignette/node_vignette.gml @@ -19,7 +19,7 @@ function Node_Vignette(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(6, nodeValue_Bool("Lighten", self, false)) - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_warp/node_warp.gml b/scripts/node_warp/node_warp.gml index 374f3f0bb..7dc685ed9 100644 --- a/scripts/node_warp/node_warp.gml +++ b/scripts/node_warp/node_warp.gml @@ -24,7 +24,7 @@ function Node_Warp(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons newInput(8, nodeValue_Bool("Tile", self, false)); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 5, ["Surfaces", false], 0, 6, 7, 8, diff --git a/scripts/node_wav_file_read/node_wav_file_read.gml b/scripts/node_wav_file_read/node_wav_file_read.gml index 077f0b805..56a828c2a 100644 --- a/scripts/node_wav_file_read/node_wav_file_read.gml +++ b/scripts/node_wav_file_read/node_wav_file_read.gml @@ -39,18 +39,18 @@ function Node_WAV_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) const newInput(2, nodeValue_Bool("Mono", self, false)); - outputs[0] = nodeValue_Output("Data", self, VALUE_TYPE.audioBit, noone) + newOutput(0, nodeValue_Output("Data", self, VALUE_TYPE.audioBit, noone)) .setArrayDepth(1); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, ""); + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")); - outputs[2] = nodeValue_Output("Sample rate", self, VALUE_TYPE.integer, 44100) + newOutput(2, nodeValue_Output("Sample rate", self, VALUE_TYPE.integer, 44100)) .setVisible(false); - outputs[3] = nodeValue_Output("Channels", self, VALUE_TYPE.integer, 2) + newOutput(3, nodeValue_Output("Channels", self, VALUE_TYPE.integer, 2)) .setVisible(false); - outputs[4] = nodeValue_Output("Duration (s)", self, VALUE_TYPE.float, 0) + newOutput(4, nodeValue_Output("Duration (s)", self, VALUE_TYPE.float, 0)) .setVisible(false); content = noone; diff --git a/scripts/node_websocket_receiver/node_websocket_receiver.gml b/scripts/node_websocket_receiver/node_websocket_receiver.gml index 84d04108f..6483136c0 100644 --- a/scripts/node_websocket_receiver/node_websocket_receiver.gml +++ b/scripts/node_websocket_receiver/node_websocket_receiver.gml @@ -9,9 +9,9 @@ function Node_Websocket_Receiver(_x, _y, _group = noone) : Node(_x, _y, _group) newInput(3, nodeValue_Text("Url", self, "")); - outputs[0] = nodeValue_Output("Data", self, VALUE_TYPE.struct, {}); + newOutput(0, nodeValue_Output("Data", self, VALUE_TYPE.struct, {})); - outputs[1] = nodeValue_Output("Receive data", self, VALUE_TYPE.trigger, false); + newOutput(1, nodeValue_Output("Receive data", self, VALUE_TYPE.trigger, false)); input_display_list = [ 1, 2, ["Connection", false], 0, 3, diff --git a/scripts/node_wrap_area/node_wrap_area.gml b/scripts/node_wrap_area/node_wrap_area.gml index da85327cd..0945c9183 100644 --- a/scripts/node_wrap_area/node_wrap_area.gml +++ b/scripts/node_wrap_area/node_wrap_area.gml @@ -10,7 +10,7 @@ function Node_Wrap_Area(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) newInput(2, nodeValue_Bool("Active", self, true)); active_index = 2; - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 2, ["Surfaces", false], 0, diff --git a/scripts/node_wrap_perspective/node_wrap_perspective.gml b/scripts/node_wrap_perspective/node_wrap_perspective.gml index de4d0e5d0..0187eedea 100644 --- a/scripts/node_wrap_perspective/node_wrap_perspective.gml +++ b/scripts/node_wrap_perspective/node_wrap_perspective.gml @@ -30,7 +30,7 @@ function Node_Warp_Perspective(_x, _y, _group = noone) : Node_Processor(_x, _y, newInput(9, nodeValue_Vec2("Bottom right", self, [ 1, 1 ] )) .setUnitRef(function(index) /*=>*/ {return getDimension(index)}, VALUE_UNIT.reference); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ 1, ["Surfaces", false], 0, diff --git a/scripts/node_xml_file_read/node_xml_file_read.gml b/scripts/node_xml_file_read/node_xml_file_read.gml index 649816701..4c813573b 100644 --- a/scripts/node_xml_file_read/node_xml_file_read.gml +++ b/scripts/node_xml_file_read/node_xml_file_read.gml @@ -33,9 +33,9 @@ function Node_XML_File_Read(_x, _y, _group = noone) : Node(_x, _y, _group) const .setDisplay(VALUE_DISPLAY.path_load, { filter: "XML file|*.xml" }) .rejectArray(); - outputs[0] = nodeValue_Output("Content", self, VALUE_TYPE.struct, {}); + newOutput(0, nodeValue_Output("Content", self, VALUE_TYPE.struct, {})); - outputs[1] = nodeValue_Output("Path", self, VALUE_TYPE.path, "") + newOutput(1, nodeValue_Output("Path", self, VALUE_TYPE.path, "")) .setVisible(true, true); content = {}; diff --git a/scripts/node_zigzag/node_zigzag.gml b/scripts/node_zigzag/node_zigzag.gml index c7e66dd1f..6a23896d5 100644 --- a/scripts/node_zigzag/node_zigzag.gml +++ b/scripts/node_zigzag/node_zigzag.gml @@ -27,7 +27,7 @@ function Node_Zigzag(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co newInput(8, nodeValue_Rotation("Angle", self, 0)) .setMappable(7); - outputs[0] = nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone); + newOutput(0, nodeValue_Output("Surface out", self, VALUE_TYPE.surface, noone)); input_display_list = [ ["Output", false], 0,