Pixel-Composer/scripts/node_iterate/node_iterate.gml

18 lines
614 B
Plaintext
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 04:08:16 +01: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 04:08:16 +01:00
2023-01-25 06:49:00 +01:00
custom_input_index = ds_list_size(inputs);
2022-01-23 04:08:16 +01:00
if(!LOADING && !APPENDING && !CLONING) { #region
2022-12-13 09:20:36 +01:00
var input = nodeBuild("Node_Iterator_Input", -256, -32, self);
var output = nodeBuild("Node_Iterator_Output", 256, -32, self);
2022-12-12 09:08:03 +01:00
2023-01-25 06:49:00 +01:00
input.inputs[| 2].setValue(4);
2023-10-18 14:58:55 +02:00
output.inputs[| 1].setFrom(input.outputs[| 1]);
} #endregion
2022-12-13 09:20:36 +01:00
static getIterationCount = function() { return getInputData(0); }
2022-01-23 04:08:16 +01:00
}