2022-12-13 09:20:36 +01:00
|
|
|
function Node_Iterator_Index(_x, _y, _group = -1) : Node(_x, _y, _group) constructor {
|
2022-01-23 04:08:16 +01:00
|
|
|
name = "Index";
|
2022-11-18 03:20:31 +01:00
|
|
|
color = COLORS.node_blend_number;
|
2022-01-23 04:08:16 +01:00
|
|
|
previewable = false;
|
|
|
|
|
|
|
|
w = 96;
|
|
|
|
min_h = 32 + 24 * 1;
|
|
|
|
|
2022-01-25 04:05:30 +01:00
|
|
|
outputs[| 0] = nodeValue(0, "Loop index", self, JUNCTION_CONNECT.output, VALUE_TYPE.integer, 0);
|
2022-01-23 04:08:16 +01:00
|
|
|
|
2022-01-24 02:21:25 +01:00
|
|
|
static update = function() {
|
2022-01-25 04:05:30 +01:00
|
|
|
if(variable_struct_exists(group, "iterated"))
|
|
|
|
outputs[| 0].setValue(group.iterated);
|
2022-01-23 04:08:16 +01:00
|
|
|
}
|
|
|
|
}
|