2022-12-13 09:20:36 +01:00
|
|
|
function Node_VFX_Group(_x, _y, _group = -1) : Node_Collection(_x, _y, _group) constructor {
|
|
|
|
name = "VFX";
|
2022-12-16 09:18:09 +01:00
|
|
|
color = COLORS.node_blend_vfx;
|
2023-02-14 05:32:32 +01:00
|
|
|
icon = THEME.vfx;
|
2022-12-13 09:20:36 +01:00
|
|
|
ungroupable = false;
|
|
|
|
|
2023-01-17 08:11:55 +01:00
|
|
|
if(!LOADING && !APPENDING && !CLONING) {
|
2022-12-13 09:20:36 +01:00
|
|
|
var input = nodeBuild("Node_VFX_Spawner", -256, -32, self);
|
|
|
|
var renderer = nodeBuild("Node_VFX_Renderer", 256, -32, self);
|
|
|
|
var output = nodeBuild("Node_Group_Output", 256 + 32 * 5, -32, self);
|
|
|
|
|
2023-01-17 08:11:55 +01:00
|
|
|
renderer.inputs[| renderer.input_fix_len].setFrom(input.outputs[| 0]);
|
2022-12-13 09:20:36 +01:00
|
|
|
output.inputs[| 0].setFrom(renderer.outputs[| 0]);
|
|
|
|
}
|
|
|
|
}
|