Pixel-Composer/scripts/node_strand_group/node_strand_group.gml

27 lines
812 B
Text
Raw Normal View History

2023-12-18 13:54:33 +01:00
function Node_Strand_Group(_x, _y, _group = noone) : Node_Collection(_x, _y, _group) constructor {
2023-03-19 09:17:39 +01:00
name = "StrandSim";
color = COLORS.node_blend_strand;
icon = THEME.strandSim;
manual_ungroupable = false;
ungroupable = false;
update_on_frame = true;
2023-03-19 09:17:39 +01:00
2024-05-03 13:40:46 +02:00
if(NODE_NEW_MANUAL) {
2023-12-18 13:54:33 +01:00
var _create = nodeBuild("Node_Strand_Create", -384, -32, self);
var _update = nodeBuild("Node_Strand_Update", 0, -32, self);
var _render = nodeBuild("Node_Strand_Render", 128, -32, self);
var _output = nodeBuild("Node_Group_Output", 384, -32, self);
2023-03-19 09:17:39 +01:00
2024-08-08 06:57:51 +02:00
_output.inputs[0].setFrom(_render.outputs[0]);
_render.inputs[1].setFrom(_update.outputs[0]);
_update.inputs[0].setFrom(_create.outputs[0]);
2023-12-18 13:54:33 +01:00
}
static onStep = function() {
RETURN_ON_REST
2023-03-19 09:17:39 +01:00
2023-12-18 13:54:33 +01:00
setRenderStatus(false);
RENDER_ALL
2023-03-19 09:17:39 +01:00
}
}