mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-30 17:06:27 +01:00
33 lines
No EOL
902 B
Text
33 lines
No EOL
902 B
Text
function Node_Feedback(_x, _y, _group = noone) : Node_Collection(_x, _y, _group) constructor {
|
|
name = "Feedback";
|
|
color = COLORS.node_blend_feedback;
|
|
icon = THEME.feedback;
|
|
|
|
update_on_frame = true;
|
|
reset_all_child = true;
|
|
|
|
if(NODE_NEW_MANUAL) { #region
|
|
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]);
|
|
output.inputs[1].setFrom(input.outputs[1]);
|
|
} #endregion
|
|
|
|
static getNextNodes = function(checkLoop = false) {
|
|
if(checkLoop) return;
|
|
|
|
var allReady = true;
|
|
for(var i = custom_input_index; i < array_length(inputs); i++) {
|
|
var _in = inputs[i].from;
|
|
if(!_in.isRenderActive()) continue;
|
|
|
|
allReady &= _in.isRenderable()
|
|
}
|
|
|
|
if(!allReady) return [];
|
|
|
|
return __nodeLeafList(getNodeList());
|
|
}
|
|
} |