mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
16 lines
535 B
Plaintext
16 lines
535 B
Plaintext
function Node_PCX_var(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) constructor {
|
|
name = "Variable";
|
|
|
|
inputs[| 0] = nodeValue("Name", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "");
|
|
|
|
inputs[| 1] = nodeValue("Value", self, JUNCTION_CONNECT.input, VALUE_TYPE.any, -1);
|
|
|
|
outputs[| 0] = nodeValue("PCX", self, JUNCTION_CONNECT.output, VALUE_TYPE.PCXnode, noone);
|
|
|
|
static update = function() {
|
|
var _name = getInputData(0);
|
|
var _val = getInputData(1);
|
|
|
|
outputs[| 0].setValue(new __funcTree("=", _name, _val));
|
|
}
|
|
} |