mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-23 11:28:06 +01:00
group
This commit is contained in:
parent
04f21339f3
commit
7826e5d9c3
57 changed files with 121 additions and 70 deletions
|
@ -38,7 +38,7 @@ function _Node_Strand_Affector(_x, _y, _group = noone) : Node(_x, _y, _group) co
|
|||
name = "Affector";
|
||||
color = COLORS.node_blend_strand;
|
||||
icon = THEME.strandSim;
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Strand", self, JUNCTION_CONNECT.input, VALUE_TYPE.strands, noone)
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Anim_Curve(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
|
|||
name = "Evaluate Curve";
|
||||
update_on_frame = true;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Curve", self, JUNCTION_CONNECT.input, VALUE_TYPE.curve, CURVE_DEF_01);
|
||||
inputs[| 1] = nodeValue("Progress", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
function Node_Area(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Area";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0 ] )
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Array(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Array";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0 )
|
||||
.setDisplay(VALUE_DISPLAY.enum_scroll, { data: [ "Any", "Surface", "Number", "Color", "Text" ], update_hover: false })
|
||||
|
@ -179,7 +179,7 @@ function Node_Array(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|||
if(outputs[| 0].type == VALUE_TYPE.surface)
|
||||
w = 128;
|
||||
else
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
} #endregion
|
||||
|
||||
static postConnect = function() { #region
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Array_Shuffle(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Shuffle Array";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Array in", self, JUNCTION_CONNECT.input, VALUE_TYPE.any, [])
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Array_Sort(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Sort Array";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Array in", self, JUNCTION_CONNECT.input, VALUE_TYPE.any, [])
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Base_Convert(_x, _y, _group = noone) : Node_Processor(_x, _y, _gro
|
|||
name = "Convert Base";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Value", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -454,6 +454,7 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
for( var i = 0; i < _ilen; i++ )
|
||||
array_push_unique(_iarr, i);
|
||||
for( var i = array_length(_iarr) - 1; i >= 0; i-- ) {
|
||||
if(is_array(_iarr[i])) continue;
|
||||
if(_iarr[i] >= _ilen) array_delete(_iarr, i, 1);
|
||||
}
|
||||
|
||||
|
@ -467,8 +468,8 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
for( var i = 0; i < _olen; i++ )
|
||||
array_push_unique(_oarr, i);
|
||||
for( var i = array_length(_oarr) - 1; i >= 0; i-- ) {
|
||||
if(_oarr[i] >= _olen)
|
||||
array_delete(_oarr, i, 1);
|
||||
if(is_array(_iarr[i])) continue;
|
||||
if(_oarr[i] >= _olen) array_delete(_oarr, i, 1);
|
||||
}
|
||||
output_display_list = attributes.output_display_list;
|
||||
|
||||
|
@ -610,12 +611,49 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
return _attr;
|
||||
} #endregion
|
||||
|
||||
static doApplyDeserialize = function() { #region
|
||||
static preApplyDeserialize = function() { #region
|
||||
var attr = attributes;
|
||||
|
||||
if(LOADING_VERSION < 11690) { #region
|
||||
var pr = ds_priority_create();
|
||||
|
||||
for( var i = ds_list_size(inputs) - 1; i >= custom_input_index; i-- ) {
|
||||
if(!struct_has(inputs[| i].attributes, "input_priority")) continue;
|
||||
|
||||
var _pri = inputs[| i].attributes.input_priority;
|
||||
ds_priority_add(pr, inputs[| i], _pri);
|
||||
ds_list_delete(inputs, i);
|
||||
}
|
||||
|
||||
repeat(ds_priority_size(pr)) ds_list_add(inputs, ds_priority_delete_min(pr));
|
||||
|
||||
for( var i = ds_list_size(outputs) - 1; i >= custom_output_index; i-- ) {
|
||||
if(!struct_has(outputs[| i].attributes, "output_priority")) continue;
|
||||
|
||||
var _pri = outputs[| i].attributes.output_priority;
|
||||
ds_priority_add(pr, outputs[| i], _pri);
|
||||
ds_list_delete(outputs, i);
|
||||
}
|
||||
|
||||
repeat(ds_priority_size(pr)) ds_list_add(outputs, ds_priority_delete_min(pr));
|
||||
|
||||
ds_priority_destroy(pr);
|
||||
return;
|
||||
} #endregion
|
||||
|
||||
if(struct_has(attr, "custom_input_list")) {
|
||||
var _ilist = attr.custom_input_list;
|
||||
var _inarr = {};
|
||||
var _dilst = [];
|
||||
|
||||
//for( var i = custom_input_index, n = ds_list_size(inputs); i < n; i++ ) {
|
||||
// if(struct_has(inputs[| i], "from"))
|
||||
// array_push(_dilst, inputs[| i].from.node_id);
|
||||
//}
|
||||
|
||||
if(APPENDING)
|
||||
for( var i = 0, n = array_length(_ilist); i < n; i++ )
|
||||
_ilist[i] = ds_map_try_get(APPEND_MAP, _ilist[i], _ilist[i]);
|
||||
|
||||
for( var i = ds_list_size(inputs) - 1; i >= custom_input_index; i-- ) {
|
||||
if(!struct_has(inputs[| i], "from")) continue;
|
||||
|
@ -632,12 +670,24 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
|
||||
ds_list_add(inputs, _inarr[$ _ilist[i]]);
|
||||
}
|
||||
|
||||
//var custom_input_list = [];
|
||||
//for( var i = custom_input_index, n = ds_list_size(inputs); i < n; i++ ) {
|
||||
// if(struct_has(inputs[| i], "from"))
|
||||
// array_push(custom_input_list, inputs[| i].from.node_id);
|
||||
//}
|
||||
|
||||
//print($"\n\ti: {_ilist}\n\td: {_dilst}\n\to: {custom_input_list}\n");
|
||||
}
|
||||
|
||||
if(struct_has(attr, "custom_output_list")) {
|
||||
var _ilist = attr.custom_output_list;
|
||||
var _inarr = {};
|
||||
|
||||
if(APPENDING)
|
||||
for( var i = 0, n = array_length(_ilist); i < n; i++ )
|
||||
_ilist[i] = ds_map_try_get(APPEND_MAP, _ilist[i], _ilist[i]);
|
||||
|
||||
for( var i = ds_list_size(outputs) - 1; i >= custom_output_index; i-- ) {
|
||||
if(!struct_has(outputs[| i], "from")) continue;
|
||||
|
||||
|
@ -655,12 +705,6 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
}
|
||||
}
|
||||
|
||||
var custom_input_list = [];
|
||||
for( var i = custom_input_index, n = ds_list_size(inputs); i < n; i++ ) {
|
||||
if(struct_has(inputs[| i], "from"))
|
||||
array_push(custom_input_list, inputs[| i].from.node_id);
|
||||
}
|
||||
|
||||
} #endregion
|
||||
|
||||
static processSerialize = function(_map) { #region
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Node_Color(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Color";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Color", self, JUNCTION_CONNECT.input, VALUE_TYPE.color, c_white);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Node_Color_Data(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Color Data";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Color", self, JUNCTION_CONNECT.input, VALUE_TYPE.color, c_white)
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Color_HSV(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "HSV Color";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Hue", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 1)
|
||||
.setDisplay(VALUE_DISPLAY.slider)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Color_RGB(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "RGB Color";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Red", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 1)
|
||||
.setDisplay(VALUE_DISPLAY.slider)
|
||||
|
|
|
@ -31,7 +31,7 @@ function Node_Compare(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
|||
name = "Compare";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0)
|
||||
.setDisplay(VALUE_DISPLAY.enum_scroll, [ new scrollItem("Equal", s_node_condition_type, 0),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Condition(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Condition";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Check value", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0 )
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Counter(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c
|
|||
name = "Frame Index";
|
||||
update_on_frame = true;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Start", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 1);
|
||||
|
||||
|
|
|
@ -2129,6 +2129,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
|||
static processDeserialize = function() {}
|
||||
|
||||
static applyDeserialize = function(preset = false) { #region
|
||||
preApplyDeserialize();
|
||||
|
||||
var _inputs = load_map.inputs;
|
||||
var amo = min(ds_list_size(inputs), array_length(_inputs));
|
||||
|
||||
|
@ -2166,7 +2168,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
|||
doApplyDeserialize();
|
||||
} #endregion
|
||||
|
||||
static doApplyDeserialize = function() {}
|
||||
static preApplyDeserialize = function() {}
|
||||
static doApplyDeserialize = function() {}
|
||||
|
||||
static loadGroup = function(context = noone) { #region
|
||||
if(_group == noone) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Node_Find_Pixel(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Find pixel";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Surface in", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, noone);
|
||||
|
||||
|
|
|
@ -367,6 +367,10 @@ function Node_Group_Input(_x, _y, _group = noone) : Node(_x, _y, _group) constru
|
|||
if(is_undefined(inParent)) return;
|
||||
} #endregion
|
||||
|
||||
static getGraphPreviewSurface = function() { #region
|
||||
return inputs[| 0].getValue();
|
||||
} #endregion
|
||||
|
||||
static postDeserialize = function() { createInput(false); }
|
||||
|
||||
static doApplyDeserialize = function() { #region
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
function Node_Group_Output(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Group Output";
|
||||
color = COLORS.node_blend_collection;
|
||||
preview_draw = false;
|
||||
is_group_io = true;
|
||||
|
||||
destroy_when_upgroup = true;
|
||||
|
@ -103,6 +102,10 @@ function Node_Group_Output(_x, _y, _group = noone) : Node(_x, _y, _group) constr
|
|||
outParent.display_type = inputs[| 0].display_type;
|
||||
} #endregion
|
||||
|
||||
static getGraphPreviewSurface = function() { #region
|
||||
return inputs[| 0].getValue();
|
||||
} #endregion
|
||||
|
||||
static postDeserialize = function() { #region
|
||||
if(group == noone) return;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Lerp(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons
|
|||
name = "Lerp";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("a", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0);
|
||||
inputs[| 1] = nodeValue("b", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0);
|
||||
|
|
|
@ -30,7 +30,7 @@ function Node_Logic(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|||
name = "Logic Opr";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0)
|
||||
.setDisplay(VALUE_DISPLAY.enum_scroll, [ new scrollItem("And" , s_node_logic, 0),
|
||||
|
|
|
@ -56,8 +56,7 @@ enum MATH_OPERATOR {
|
|||
function Node_Math(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Math";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0)
|
||||
.setDisplay(VALUE_DISPLAY.enum_scroll, [
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Mesh_Create_Path(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Path to Mesh";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone)
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Mesh_To_Path(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Mesh to Path";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Mesh", self, JUNCTION_CONNECT.input, VALUE_TYPE.mesh, noone)
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Move_Point(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
|
|||
name = "Translate Point";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Point", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0, ])
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
|
@ -12,7 +12,7 @@ enum _ANCHOR {
|
|||
function Node_Path(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Path";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Path progress", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0, "Sample position from path.")
|
||||
.setDisplay(VALUE_DISPLAY.slider);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Path_Anchor(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Path Anchor";
|
||||
color = COLORS.node_blend_number;
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Postion", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0 ] )
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
|
@ -10,7 +10,7 @@ function L_Turtle(x = 0, y = 0, ang = 90, w = 1, color = c_white) constructor {
|
|||
|
||||
function Node_Path_L_System(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "L System";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Length", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 8);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Path_Separate_Folder(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Separate File Path";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.path, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Random(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co
|
|||
name = "Random";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("seed", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, irandom(99999));
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Node_Sampler(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Sampler";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Surface in", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, noone);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Scatter_Points(_x, _y, _group = noone) : Node(_x, _y, _group) cons
|
|||
name = "Scatter Points";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
onSurfaceSize = function() { return getInputData(7, DEF_SURF); };
|
||||
inputs[| 0] = nodeValue("Point area", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, DEF_AREA_REF )
|
||||
|
|
|
@ -28,7 +28,7 @@ enum STAT_OPERATOR {
|
|||
function Node_Statistic(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Statistic";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0)
|
||||
.setDisplay(VALUE_DISPLAY.enum_scroll, [ "Sum", "Mean", "Median", "Max", "Min" ])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Node_String_Get_Char(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Get Character";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Join(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Join Text";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text array", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, [])
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Length(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Text Length";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Merge(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Combine Text";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
setIsDynamicInput(1);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Regex_Match(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "RegEx Match";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Regex_Replace(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "RegEx Replace";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Regex_Search(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "RegEx Search";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Node_String_Split(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Split Text";
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_String_Trim(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Trim Text";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Struct(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Struct";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
outputs[| 0] = nodeValue("Struct", self, JUNCTION_CONNECT.output, VALUE_TYPE.struct, {});
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Struct_Get(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Struct Get";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Struct", self, JUNCTION_CONNECT.input, VALUE_TYPE.struct, {})
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Struct_Set(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Struct Set";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Struct", self, JUNCTION_CONNECT.input, VALUE_TYPE.struct, {})
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -9,7 +9,7 @@ function Node_Surface_data(_x, _y, _group = noone) : Node(_x, _y, _group) constr
|
|||
outputs[| 1] = nodeValue("Array length", self, JUNCTION_CONNECT.output, VALUE_TYPE.integer, 0);
|
||||
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
static update = function(frame = CURRENT_FRAME) {
|
||||
var _insurf = getInputData(0);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_Switch(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
||||
name = "Switch";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Index", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "" )
|
||||
.setVisible(true, true)
|
||||
|
|
|
@ -3,7 +3,7 @@ function Node_Timeline_Preview(_x, _y, _group = noone) : Node(_x, _y, _group) co
|
|||
use_cache = CACHE_USE.auto;
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
|
||||
PANEL_ANIMATION.timeline_preview = self;
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_To_Number(_x, _y, _group = noone) : Node_Processor(_x, _y, _group)
|
|||
name = "To Number";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "")
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function Node_To_Text(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "To Text";
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Value", self, JUNCTION_CONNECT.input, VALUE_TYPE.any, 0)
|
||||
.setVisible(true, true);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Transform_Array(_x, _y, _group = noone) : Node_Processor(_x, _y, _
|
|||
name = "Transform Array";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Postion", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0 ] )
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
|
@ -4,7 +4,7 @@ function Node_Tunnel_In(_x, _y, _group = noone) : Node(_x, _y, _group) construct
|
|||
is_group_io = true;
|
||||
preview_draw = false;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Name", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "" )
|
||||
.setDisplay(VALUE_DISPLAY.text_tunnel)
|
||||
|
|
|
@ -4,7 +4,7 @@ function Node_Tunnel_Out(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
is_group_io = true;
|
||||
preview_draw = false;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Name", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, "" )
|
||||
.setDisplay(VALUE_DISPLAY.text_tunnel)
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Unicode(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) c
|
|||
name = "Unicode";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
|
||||
inputs[| 0] = nodeValue("Unicode", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 64);
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Vector_Cross_2D(_x, _y, _group = noone) : Node_Processor(_x, _y, _
|
|||
name = "Cross Product 2D";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Point 1", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0 ])
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
|
@ -2,7 +2,7 @@ function Node_Vector_Cross_3D(_x, _y, _group = noone) : Node_Processor(_x, _y, _
|
|||
name = "Cross Product 3D";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Point 1", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0, 0 ])
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
function Node_Vector_Dot(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Dot Product";
|
||||
color = COLORS.node_blend_number;
|
||||
|
||||
w = 96;
|
||||
name = "Dot Product";
|
||||
color = COLORS.node_blend_number;
|
||||
setDimension(96, 80);
|
||||
|
||||
inputs[| 0] = nodeValue("Point 1", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 0, 0 ])
|
||||
.setDisplay(VALUE_DISPLAY.vector)
|
||||
|
|
Loading…
Reference in a new issue