Pixel-Composer/scripts/node_feedback/node_feedback.gml

31 lines
908 B
Plaintext
Raw Normal View History

2023-02-28 09:43:01 +01:00
function Node_Feedback(_x, _y, _group = noone) : Node_Collection(_x, _y, _group) constructor {
2022-12-16 09:18:09 +01:00
name = "Feedback";
color = COLORS.node_blend_feedback;
2022-12-27 04:00:50 +01:00
icon = THEME.feedback;
2022-12-16 09:18:09 +01:00
update_on_frame = true;
reset_all_child = true;
2023-06-01 10:32:21 +02:00
if(!LOADING && !APPENDING && !CLONING) { #region
2022-12-16 09:18:09 +01:00
var input = nodeBuild("Node_Feedback_Input", -256, -32, self);
var output = nodeBuild("Node_Feedback_Output", 256, -32, self);
input.inputs[| 2].setValue(4);
output.inputs[| 0].setFrom(input.outputs[| 0]);
2023-10-18 14:58:55 +02:00
output.inputs[| 1].setFrom(input.outputs[| 1]);
} #endregion
2022-12-16 09:18:09 +01:00
static getNextNodes = function() { #region
2022-12-16 09:18:09 +01:00
var allReady = true;
for(var i = custom_input_index; i < ds_list_size(inputs); i++) {
var _in = inputs[| i].from;
2023-06-17 14:30:49 +02:00
if(!_in.isRenderActive()) continue;
2023-02-19 13:49:20 +01:00
2023-03-26 07:13:36 +02:00
allReady &= _in.isRenderable()
2022-12-16 09:18:09 +01:00
}
2023-03-28 06:58:28 +02:00
if(!allReady) return [];
2022-12-16 09:18:09 +01:00
2023-03-28 06:58:28 +02:00
return __nodeLeafList(getNodeList());
} #endregion
2022-12-16 09:18:09 +01:00
}