Pixel-Composer/scripts/node_FLIP_group/node_FLIP_group.gml

20 lines
618 B
Text
Raw Normal View History

2023-12-29 14:30:54 +01:00
function Node_FLIP_Group_Inline(_x, _y, _group = noone) : Node_Collection_Inline(_x, _y, _group) constructor {
name = "FLIP Fluid";
color = COLORS.node_blend_fluid;
icon = THEME.fluid_sim;
update_on_frame = true;
if(!LOADING && !APPENDING && !CLONING) {
var _domain = nodeBuild("Node_FLIP_Domain", x, y);
var _spawn = nodeBuild("Node_FLIP_Spawner", x + 160, y);
var _render = nodeBuild("Node_FLIP_Render", x + 320, y);
_spawn.inputs[| 0].setFrom(_domain.outputs[| 0]);
_render.inputs[| 0].setFrom(_spawn.outputs[| 0]);
addNode(_domain);
addNode(_spawn);
addNode(_render);
}
}