mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-13 15:56:35 +01:00
21 lines
503 B
Text
21 lines
503 B
Text
|
function Node_create_Iterator_Index(_x, _y) {
|
||
|
var node = new Node_Iterator_Index(_x, _y);
|
||
|
ds_list_add(PANEL_GRAPH.nodes_list, node);
|
||
|
return node;
|
||
|
}
|
||
|
|
||
|
function Node_Iterator_Index(_x, _y) : Node(_x, _y) constructor {
|
||
|
name = "Index";
|
||
|
color = c_ui_cyan;
|
||
|
previewable = false;
|
||
|
|
||
|
w = 96;
|
||
|
min_h = 32 + 24 * 1;
|
||
|
|
||
|
outputs[| 0] = nodeValue(0, "Index", self, JUNCTION_CONNECT.output, VALUE_TYPE.float, 0);
|
||
|
|
||
|
update = function() {
|
||
|
if(instanceof(group) == "Node_Iterate")
|
||
|
return group.iterated;
|
||
|
}
|
||
|
}
|