Pixel-Composer/scripts/node_module_test/node_module_test.gml

29 lines
815 B
Plaintext
Raw Normal View History

2023-10-18 14:58:55 +02:00
function Node_Module_SubModule(parent) : NodeModule(parent) constructor {
2024-08-18 06:16:20 +02:00
newInput(0, nodeValue_Surface("Module input 0", parent));
2023-10-18 14:58:55 +02:00
2024-08-20 10:15:53 +02:00
newInput(1, nodeValue("Module input 1", parent, CONNECT_TYPE.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-18 06:16:20 +02:00
newInput(0, nodeValue_Float("Static input", self, 0));
2023-10-18 14:58:55 +02:00
2024-09-04 03:57:11 +02:00
newOutput(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() {}
}