Pixel-Composer/scripts/node_iterate/node_iterate.gml

18 lines
595 B
Text
Raw Normal View History

2023-06-01 10:32:21 +02:00
function Node_Iterate(_x, _y, _group = noone) : Node_Iterator(_x, _y, _group) constructor {
name = "Loop";
2022-01-23 10:08:16 +07:00
2023-07-25 20:12:40 +02:00
inputs[| 0] = nodeValue("Repeat", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 1 )
.uncache();
2022-01-23 10:08:16 +07:00
2023-01-25 12:49:00 +07:00
custom_input_index = ds_list_size(inputs);
2022-01-23 10:08:16 +07:00
2024-05-03 18:40:46 +07:00
if(NODE_NEW_MANUAL) { #region
2022-12-13 15:20:36 +07:00
var input = nodeBuild("Node_Iterator_Input", -256, -32, self);
var output = nodeBuild("Node_Iterator_Output", 256, -32, self);
2022-12-12 15:08:03 +07:00
2023-01-25 12:49:00 +07:00
input.inputs[| 2].setValue(4);
2023-10-18 19:58:55 +07:00
output.inputs[| 1].setFrom(input.outputs[| 1]);
} #endregion
2022-12-13 15:20:36 +07:00
static getIterationCount = function() { return getInputData(0); }
2022-01-23 10:08:16 +07:00
}