mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-28 16:06:20 +01:00
16 lines
No EOL
472 B
Text
16 lines
No EOL
472 B
Text
function Node_PCX_var(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) constructor {
|
|
name = "Variable";
|
|
|
|
newInput(0, nodeValue_Text("Name", self, ""));
|
|
|
|
newInput(1, nodeValue("Value", self, CONNECT_TYPE.input, VALUE_TYPE.any, -1));
|
|
|
|
newOutput(0, nodeValue_Output("PCX", self, VALUE_TYPE.PCXnode, noone));
|
|
|
|
static update = function() {
|
|
var _name = getInputData(0);
|
|
var _val = getInputData(1);
|
|
|
|
outputs[0].setValue(new __funcTree("=", _name, _val));
|
|
}
|
|
} |