Pixel-Composer/scripts/node_VFX_group/node_VFX_group.gml

17 lines
579 B
Plaintext
Raw Normal View History

2023-02-28 09:43:01 +01:00
function Node_VFX_Group(_x, _y, _group = noone) : Node_Collection(_x, _y, _group) constructor {
2022-12-13 09:20:36 +01:00
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]);
}
2023-03-08 14:59:54 +01:00
PATCH_STATIC
2022-12-13 09:20:36 +01:00
}