2023-10-18 14:58:55 +02:00
|
|
|
function Node_Module_SubModule(parent) : NodeModule(parent) constructor {
|
2024-08-08 06:57:51 +02:00
|
|
|
inputs[0] = nodeValue_Surface("Module input 0", parent);
|
2023-10-18 14:58:55 +02:00
|
|
|
|
2024-08-08 06:57:51 +02:00
|
|
|
inputs[1] = nodeValue("Module input 1", parent, JUNCTION_CONNECT.input, VALUE_TYPE.text, "");
|
2023-10-18 14:58:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function Node_Module_Test(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|
|
|
name = "Module test";
|
|
|
|
|
2024-08-08 06:57:51 +02:00
|
|
|
inputs[0] = nodeValue_Float("Static input", self, 0);
|
2023-10-18 14:58:55 +02:00
|
|
|
|
2024-08-08 06:57:51 +02:00
|
|
|
outputs[0] = nodeValue_Output("Output", self, VALUE_TYPE.float, 0);
|
2023-10-18 14:58:55 +02:00
|
|
|
|
2023-10-27 13:55:31 +02:00
|
|
|
//input_display_list = [ 0 ];
|
2023-10-18 14:58:55 +02:00
|
|
|
|
2024-05-23 10:59:39 +02:00
|
|
|
setDynamicInput(1);
|
2023-10-18 14:58:55 +02:00
|
|
|
|
|
|
|
static createNewInput = function() { #region
|
2024-08-08 06:57:51 +02:00
|
|
|
var index = array_length(inputs);
|
2023-10-18 14:58:55 +02:00
|
|
|
|
2024-08-08 06:57:51 +02:00
|
|
|
inputs[index] = new Node_Module_SubModule(self);
|
2023-10-18 14:58:55 +02:00
|
|
|
|
2024-08-08 06:57:51 +02:00
|
|
|
return inputs[index];
|
2023-10-18 14:58:55 +02:00
|
|
|
} if(!LOADING && !APPENDING) createNewInput(); #endregion
|
|
|
|
|
|
|
|
static step = function() {}
|
|
|
|
|
|
|
|
static update = function() {}
|
|
|
|
}
|