mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-27 07:26:33 +01:00
20 lines
No EOL
618 B
Text
20 lines
No EOL
618 B
Text
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);
|
|
}
|
|
} |