mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 12:34:06 +01:00
1.17.10
This commit is contained in:
parent
e1eaf0ce7f
commit
60881f3c71
@ -115,6 +115,7 @@
|
||||
{"name":"surface","order":10,"path":"folders/nodes/data/value/surface.yy",},
|
||||
{"name":"text","order":11,"path":"folders/nodes/data/value/text.yy",},
|
||||
{"name":"trigger","order":13,"path":"folders/nodes/data/value/trigger.yy",},
|
||||
{"name":"vector","order":13,"path":"folders/nodes/data/value/vector.yy",},
|
||||
{"name":"icons","order":1,"path":"folders/nodes/icons.yy",},
|
||||
{"name":"animation","order":1,"path":"folders/nodes/icons/animation.yy",},
|
||||
{"name":"filter","order":2,"path":"folders/nodes/icons/filter.yy",},
|
||||
@ -131,11 +132,11 @@
|
||||
{"name":"strandSim","order":12,"path":"folders/nodes/icons/strandSim.yy",},
|
||||
{"name":"transform","order":13,"path":"folders/nodes/icons/transform.yy",},
|
||||
{"name":"value","order":14,"path":"folders/nodes/icons/value.yy",},
|
||||
{"name":"area","order":30,"path":"folders/nodes/icons/value/area.yy",},
|
||||
{"name":"array","order":1,"path":"folders/nodes/icons/value/array.yy",},
|
||||
{"name":"atlas","order":2,"path":"folders/nodes/icons/value/atlas.yy",},
|
||||
{"name":"bool","order":3,"path":"folders/nodes/icons/value/bool.yy",},
|
||||
{"name":"color","order":4,"path":"folders/nodes/icons/value/color.yy",},
|
||||
{"name":"area","order":30,"path":"folders/nodes/icons/value/area.yy",},
|
||||
{"name":"mesh","order":5,"path":"folders/nodes/icons/value/mesh.yy",},
|
||||
{"name":"number","order":6,"path":"folders/nodes/icons/value/number.yy",},
|
||||
{"name":"path","order":29,"path":"folders/nodes/icons/value/path.yy",},
|
||||
@ -1198,13 +1199,14 @@
|
||||
{"name":"node_value_vec3_range","order":15,"path":"scripts/node_value_vec3_range/node_value_vec3_range.yy",},
|
||||
{"name":"node_value_vec3","order":4,"path":"scripts/node_value_vec3/node_value_vec3.yy",},
|
||||
{"name":"node_value_vec4","order":5,"path":"scripts/node_value_vec4/node_value_vec4.yy",},
|
||||
{"name":"node_vector_cross_2D","order":12,"path":"scripts/node_vector_cross_2D/node_vector_cross_2D.yy",},
|
||||
{"name":"node_vector_cross_3D","order":11,"path":"scripts/node_vector_cross_3D/node_vector_cross_3D.yy",},
|
||||
{"name":"node_vector_dot","order":10,"path":"scripts/node_vector_dot/node_vector_dot.yy",},
|
||||
{"name":"node_vector_split","order":20,"path":"scripts/node_vector_split/node_vector_split.yy",},
|
||||
{"name":"node_vector2","order":17,"path":"scripts/node_vector2/node_vector2.yy",},
|
||||
{"name":"node_vector3","order":18,"path":"scripts/node_vector3/node_vector3.yy",},
|
||||
{"name":"node_vector4","order":19,"path":"scripts/node_vector4/node_vector4.yy",},
|
||||
{"name":"node_vector_cross_3D","order":1,"path":"scripts/node_vector_cross_3D/node_vector_cross_3D.yy",},
|
||||
{"name":"node_vector_dot","order":2,"path":"scripts/node_vector_dot/node_vector_dot.yy",},
|
||||
{"name":"node_vector_magnitude","order":7,"path":"scripts/node_vector_magnitude/node_vector_magnitude.yy",},
|
||||
{"name":"node_vector_split","order":3,"path":"scripts/node_vector_split/node_vector_split.yy",},
|
||||
{"name":"node_vector_swizzle","order":8,"path":"scripts/node_vector_swizzle/node_vector_swizzle.yy",},
|
||||
{"name":"node_vector2","order":4,"path":"scripts/node_vector2/node_vector2.yy",},
|
||||
{"name":"node_vector3","order":5,"path":"scripts/node_vector3/node_vector3.yy",},
|
||||
{"name":"node_vector4","order":6,"path":"scripts/node_vector4/node_vector4.yy",},
|
||||
{"name":"node_VFX_accelerate","order":1,"path":"scripts/node_VFX_accelerate/node_VFX_accelerate.yy",},
|
||||
{"name":"node_VFX_attract","order":2,"path":"scripts/node_VFX_attract/node_VFX_attract.yy",},
|
||||
{"name":"node_VFX_destroy","order":3,"path":"scripts/node_VFX_destroy/node_VFX_destroy.yy",},
|
||||
@ -2238,6 +2240,7 @@
|
||||
{"name":"s_node_lua_compute","order":17,"path":"sprites/s_node_lua_compute/s_node_lua_compute.yy",},
|
||||
{"name":"s_node_lua_global","order":19,"path":"sprites/s_node_lua_global/s_node_lua_global.yy",},
|
||||
{"name":"s_node_lua_surface","order":18,"path":"sprites/s_node_lua_surface/s_node_lua_surface.yy",},
|
||||
{"name":"s_node_magnitude","order":18,"path":"sprites/s_node_magnitude/s_node_magnitude.yy",},
|
||||
{"name":"s_node_math","order":6,"path":"sprites/s_node_math/s_node_math.yy",},
|
||||
{"name":"s_node_mesh_transform","order":1,"path":"sprites/s_node_mesh_transform/s_node_mesh_transform.yy",},
|
||||
{"name":"s_node_mesh_type","order":15,"path":"sprites/s_node_mesh_type/s_node_mesh_type.yy",},
|
||||
@ -2451,6 +2454,7 @@
|
||||
{"name":"s_node_surface_to_buffer","order":3,"path":"sprites/s_node_surface_to_buffer/s_node_surface_to_buffer.yy",},
|
||||
{"name":"s_node_svg","order":38,"path":"sprites/s_node_svg/s_node_svg.yy",},
|
||||
{"name":"s_node_switch","order":20,"path":"sprites/s_node_switch/s_node_switch.yy",},
|
||||
{"name":"s_node_swizzle","order":19,"path":"sprites/s_node_swizzle/s_node_swizzle.yy",},
|
||||
{"name":"s_node_terminal_trigger","order":41,"path":"sprites/s_node_terminal_trigger/s_node_terminal_trigger.yy",},
|
||||
{"name":"s_node_text_char_get","order":2,"path":"sprites/s_node_text_char_get/s_node_text_char_get.yy",},
|
||||
{"name":"s_node_text_combine","order":3,"path":"sprites/s_node_text_combine/s_node_text_combine.yy",},
|
||||
|
@ -214,6 +214,7 @@
|
||||
{"$GMFolder":"","%Name":"surface","folderPath":"folders/nodes/data/value/surface.yy","name":"surface","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"text","folderPath":"folders/nodes/data/value/text.yy","name":"text","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"trigger","folderPath":"folders/nodes/data/value/trigger.yy","name":"trigger","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"vector","folderPath":"folders/nodes/data/value/vector.yy","name":"vector","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"icons","folderPath":"folders/nodes/icons.yy","name":"icons","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"3D","folderPath":"folders/nodes/icons/3D.yy","name":"3D","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"animation","folderPath":"folders/nodes/icons/animation.yy","name":"animation","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
@ -231,11 +232,11 @@
|
||||
{"$GMFolder":"","%Name":"strandSim","folderPath":"folders/nodes/icons/strandSim.yy","name":"strandSim","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"transform","folderPath":"folders/nodes/icons/transform.yy","name":"transform","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"value","folderPath":"folders/nodes/icons/value.yy","name":"value","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"area","folderPath":"folders/nodes/icons/value/area.yy","name":"area","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"array","folderPath":"folders/nodes/icons/value/array.yy","name":"array","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"atlas","folderPath":"folders/nodes/icons/value/atlas.yy","name":"atlas","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"bool","folderPath":"folders/nodes/icons/value/bool.yy","name":"bool","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"color","folderPath":"folders/nodes/icons/value/color.yy","name":"color","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"area","folderPath":"folders/nodes/icons/value/area.yy","name":"area","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"mesh","folderPath":"folders/nodes/icons/value/mesh.yy","name":"mesh","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"number","folderPath":"folders/nodes/icons/value/number.yy","name":"number","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
{"$GMFolder":"","%Name":"path","folderPath":"folders/nodes/icons/value/path.yy","name":"path","resourceType":"GMFolder","resourceVersion":"2.0",},
|
||||
@ -1807,7 +1808,9 @@
|
||||
{"id":{"name":"node_vector_cross_2D","path":"scripts/node_vector_cross_2D/node_vector_cross_2D.yy",},},
|
||||
{"id":{"name":"node_vector_cross_3D","path":"scripts/node_vector_cross_3D/node_vector_cross_3D.yy",},},
|
||||
{"id":{"name":"node_vector_dot","path":"scripts/node_vector_dot/node_vector_dot.yy",},},
|
||||
{"id":{"name":"node_vector_magnitude","path":"scripts/node_vector_magnitude/node_vector_magnitude.yy",},},
|
||||
{"id":{"name":"node_vector_split","path":"scripts/node_vector_split/node_vector_split.yy",},},
|
||||
{"id":{"name":"node_vector_swizzle","path":"scripts/node_vector_swizzle/node_vector_swizzle.yy",},},
|
||||
{"id":{"name":"node_vector2","path":"scripts/node_vector2/node_vector2.yy",},},
|
||||
{"id":{"name":"node_vector3","path":"scripts/node_vector3/node_vector3.yy",},},
|
||||
{"id":{"name":"node_vector4","path":"scripts/node_vector4/node_vector4.yy",},},
|
||||
@ -2969,6 +2972,7 @@
|
||||
{"id":{"name":"s_node_lua_compute","path":"sprites/s_node_lua_compute/s_node_lua_compute.yy",},},
|
||||
{"id":{"name":"s_node_lua_global","path":"sprites/s_node_lua_global/s_node_lua_global.yy",},},
|
||||
{"id":{"name":"s_node_lua_surface","path":"sprites/s_node_lua_surface/s_node_lua_surface.yy",},},
|
||||
{"id":{"name":"s_node_magnitude","path":"sprites/s_node_magnitude/s_node_magnitude.yy",},},
|
||||
{"id":{"name":"s_node_math","path":"sprites/s_node_math/s_node_math.yy",},},
|
||||
{"id":{"name":"s_node_mesh_path","path":"sprites/s_node_mesh_path/s_node_mesh_path.yy",},},
|
||||
{"id":{"name":"s_node_mesh_transform","path":"sprites/s_node_mesh_transform/s_node_mesh_transform.yy",},},
|
||||
@ -3190,6 +3194,7 @@
|
||||
{"id":{"name":"s_node_surface_to_buffer","path":"sprites/s_node_surface_to_buffer/s_node_surface_to_buffer.yy",},},
|
||||
{"id":{"name":"s_node_svg","path":"sprites/s_node_svg/s_node_svg.yy",},},
|
||||
{"id":{"name":"s_node_switch","path":"sprites/s_node_switch/s_node_switch.yy",},},
|
||||
{"id":{"name":"s_node_swizzle","path":"sprites/s_node_swizzle/s_node_swizzle.yy",},},
|
||||
{"id":{"name":"s_node_terminal_trigger","path":"sprites/s_node_terminal_trigger/s_node_terminal_trigger.yy",},},
|
||||
{"id":{"name":"s_node_text_char_get","path":"sprites/s_node_text_char_get/s_node_text_char_get.yy",},},
|
||||
{"id":{"name":"s_node_text_combine","path":"sprites/s_node_text_combine/s_node_text_combine.yy",},},
|
||||
|
@ -39,7 +39,7 @@
|
||||
LATEST_VERSION = 1_17_00_0;
|
||||
VERSION = 1_17_10_0;
|
||||
SAVE_VERSION = 1_17_10_0;
|
||||
VERSION_STRING = "1.17.10.006";
|
||||
VERSION_STRING = "1.17.10";
|
||||
BUILD_NUMBER = 1_17_10_0;
|
||||
|
||||
HOTKEYS = ds_map_create();
|
||||
|
@ -866,9 +866,11 @@ function __initNodes() {
|
||||
addNodeObject(values, "Vector3", s_node_vec3, "Node_Vector3", [1, Node_Vector3]);
|
||||
addNodeObject(values, "Vector4", s_node_vec4, "Node_Vector4", [1, Node_Vector4]);
|
||||
addNodeObject(values, "Vector Split", s_node_vec_split, "Node_Vector_Split", [1, Node_Vector_Split]);
|
||||
addNodeObject(values, "Magnitude", s_node_magnitude, "Node_Vector_Magnitude", [1, Node_Vector_Magnitude], ["vector length", "vector magnitude"]).setVersion(1_17_10_0);
|
||||
addNodeObject(values, "Dot product", s_node_dot_product, "Node_Vector_Dot", [1, Node_Vector_Dot]).setVersion(1141);
|
||||
addNodeObject(values, "Cross product 3D", s_node_cross_product_2d, "Node_Vector_Cross_3D", [1, Node_Vector_Cross_3D]).setVersion(1141);
|
||||
addNodeObject(values, "Cross product 2D", s_node_cross_product_3d, "Node_Vector_Cross_2D", [1, Node_Vector_Cross_2D]).setVersion(1141);
|
||||
addNodeObject(values, "Swizzle", s_node_swizzle, "Node_Vector_Swizzle", [1, Node_Vector_Swizzle], ["swap axis"]).setVersion(1_17_10_0);
|
||||
|
||||
ds_list_add(values, "Texts");
|
||||
addNodeObject(values, "Text", s_node_text, "Node_String", [1, Node_String]);
|
||||
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector2",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector3",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector4",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector_cross_2D",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector_cross_3D",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector_dot",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
38
scripts/node_vector_magnitude/node_vector_magnitude.gml
Normal file
38
scripts/node_vector_magnitude/node_vector_magnitude.gml
Normal file
@ -0,0 +1,38 @@
|
||||
function Node_Vector_Magnitude(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Magnitude";
|
||||
color = COLORS.node_blend_number;
|
||||
setDimension(96, 48);
|
||||
|
||||
inputs[0] = nodeValue("Vector", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [])
|
||||
.setArrayDepth(1)
|
||||
.setVisible(true, true);
|
||||
|
||||
outputs[0] = nodeValue_Output("Magnitude", self, VALUE_TYPE.float, 0 );
|
||||
|
||||
static processData = function(_output, _data, _output_index, _array_index = 0) {
|
||||
var _vec = _data[0];
|
||||
if(!is_array(_vec)) return 0;
|
||||
|
||||
switch(array_length(_vec)) {
|
||||
case 0 : return 0;
|
||||
case 1 : return _vec[0];
|
||||
case 2 : return sqrt(sqr(_vec[0]) + sqr(_vec[1]));
|
||||
case 3 : return sqrt(sqr(_vec[0]) + sqr(_vec[1]) + sqr(_vec[2]));
|
||||
case 4 : return sqrt(sqr(_vec[0]) + sqr(_vec[1]) + sqr(_vec[2]) + sqr(_vec[3]));
|
||||
|
||||
default :
|
||||
var _red = array_reduce(_vec, function(_p, _c) { return _p + _c * _c; }, 0);
|
||||
return sqrt(_red);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) {
|
||||
var bbox = drawGetBbox(xx, yy, _s);
|
||||
var val = outputs[0].getValue();
|
||||
|
||||
draw_set_text(f_sdf, fa_center, fa_center, COLORS._main_text);
|
||||
draw_text_bbox(bbox, string(val));
|
||||
}
|
||||
}
|
13
scripts/node_vector_magnitude/node_vector_magnitude.yy
Normal file
13
scripts/node_vector_magnitude/node_vector_magnitude.yy
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"$GMScript":"",
|
||||
"%Name":"node_vector_magnitude",
|
||||
"isCompatibility":false,
|
||||
"isDnD":false,
|
||||
"name":"node_vector_magnitude",
|
||||
"parent":{
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
}
|
@ -5,8 +5,8 @@
|
||||
"isDnD":false,
|
||||
"name":"node_vector_split",
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/data/value/number.yy",
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
|
64
scripts/node_vector_swizzle/node_vector_swizzle.gml
Normal file
64
scripts/node_vector_swizzle/node_vector_swizzle.gml
Normal file
@ -0,0 +1,64 @@
|
||||
function Node_Vector_Swizzle(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Swizzle";
|
||||
color = COLORS.node_blend_number;
|
||||
setDimension(96, 48);
|
||||
|
||||
inputs[0] = nodeValue("Vector", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [])
|
||||
.setArrayDepth(1)
|
||||
.setVisible(true, true);
|
||||
|
||||
inputs[1] = nodeValue_Text("Swizzle", self, "");
|
||||
|
||||
outputs[0] = nodeValue_Output("Result", self, VALUE_TYPE.float, [] );
|
||||
|
||||
static char_get_index = function(_chr) {
|
||||
switch(string_lower(_chr)) {
|
||||
case "r" :
|
||||
case "x" :
|
||||
return 0;
|
||||
|
||||
case "g" :
|
||||
case "y" :
|
||||
return 1;
|
||||
|
||||
case "b" :
|
||||
case "z" :
|
||||
return 2;
|
||||
|
||||
case "a" :
|
||||
case "w" :
|
||||
return 3;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static processData = function(_output, _data, _output_index, _array_index = 0) {
|
||||
var _vec = _data[0];
|
||||
var _swz = _data[1];
|
||||
|
||||
var amo = string_length(_swz);
|
||||
if(amo == 0) return _vec;
|
||||
|
||||
var ind = 1;
|
||||
var ch, ix;
|
||||
var _v = [];
|
||||
|
||||
repeat(amo) {
|
||||
ch = string_char_at(_swz, ind++);
|
||||
ix = char_get_index(ch);
|
||||
|
||||
array_push(_v, array_safe_get(_vec, ix));
|
||||
}
|
||||
|
||||
return amo == 1? _v[0] : _v;
|
||||
}
|
||||
|
||||
static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) {
|
||||
var bbox = drawGetBbox(xx, yy, _s);
|
||||
var val = getInputData(1);
|
||||
|
||||
draw_set_text(f_sdf, fa_center, fa_center, COLORS._main_text);
|
||||
draw_text_bbox(bbox, val);
|
||||
}
|
||||
}
|
13
scripts/node_vector_swizzle/node_vector_swizzle.yy
Normal file
13
scripts/node_vector_swizzle/node_vector_swizzle.yy
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"$GMScript":"",
|
||||
"%Name":"node_vector_swizzle",
|
||||
"isCompatibility":false,
|
||||
"isDnD":false,
|
||||
"name":"node_vector_swizzle",
|
||||
"parent":{
|
||||
"name":"vector",
|
||||
"path":"folders/nodes/data/value/vector.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
}
|
@ -106,6 +106,7 @@
|
||||
PROJECT_VARIABLES.Project.fps = [ function() { return PROJECT.animator.framerate }, EXPRESS_TREE_ANIM.none ];
|
||||
PROJECT_VARIABLES.Project.time = [ function() { return CURRENT_FRAME / PROJECT.animator.framerate }, EXPRESS_TREE_ANIM.animated ];
|
||||
PROJECT_VARIABLES.Project.name = [ function() { return filename_name_only(PROJECT.path) }, EXPRESS_TREE_ANIM.none ];
|
||||
PROJECT_VARIABLES.Project.dimension = [ function() { return PROJECT.attributes.surface_dimension; }, EXPRESS_TREE_ANIM.none ];
|
||||
|
||||
PROJECT_VARIABLES.Program = {};
|
||||
PROJECT_VARIABLES.Program.time = [ function() { return current_time / 1000 }, EXPRESS_TREE_ANIM.animated ];
|
||||
|
@ -12,16 +12,16 @@
|
||||
|
||||
#region project
|
||||
function Project() constructor {
|
||||
active = true; /// @is {bool}
|
||||
active = true;
|
||||
|
||||
meta = __getdefaultMetaData();
|
||||
path = ""; /// @is {string}
|
||||
path = "";
|
||||
thumbnail = "";
|
||||
version = SAVE_VERSION; /// @is {number}
|
||||
seed = irandom_range(100000, 999999); /// @is {number}
|
||||
version = SAVE_VERSION;
|
||||
seed = irandom_range(100000, 999999);
|
||||
|
||||
modified = false; /// @is {bool}
|
||||
readonly = false; /// @is {bool}
|
||||
modified = false;
|
||||
readonly = false;
|
||||
safeMode = false;
|
||||
|
||||
allNodes = [];
|
||||
|
@ -48,7 +48,7 @@ function string_compare(s1, s2) {
|
||||
var l1 = string_length(s1);
|
||||
var l2 = string_length(s2);
|
||||
|
||||
var i = 0;
|
||||
var i = 1;
|
||||
var c1, c2;
|
||||
|
||||
repeat(min(l1, l2)) {
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
90
sprites/s_node_magnitude/s_node_magnitude.yy
Normal file
90
sprites/s_node_magnitude/s_node_magnitude.yy
Normal file
@ -0,0 +1,90 @@
|
||||
{
|
||||
"$GMSprite":"",
|
||||
"%Name":"s_node_magnitude",
|
||||
"bboxMode":0,
|
||||
"bbox_bottom":60,
|
||||
"bbox_left":3,
|
||||
"bbox_right":58,
|
||||
"bbox_top":3,
|
||||
"collisionKind":1,
|
||||
"collisionTolerance":0,
|
||||
"DynamicTexturePage":false,
|
||||
"edgeFiltering":false,
|
||||
"For3D":false,
|
||||
"frames":[
|
||||
{"$GMSpriteFrame":"","%Name":"9456dfd4-bf59-44e4-a813-614a3b8cfab2","name":"9456dfd4-bf59-44e4-a813-614a3b8cfab2","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||
],
|
||||
"gridX":0,
|
||||
"gridY":0,
|
||||
"height":64,
|
||||
"HTile":false,
|
||||
"layers":[
|
||||
{"$GMImageLayer":"","%Name":"00fdcf52-54c2-45d7-bce9-cf5c18fc7d15","blendMode":0,"displayName":"default","isLocked":false,"name":"00fdcf52-54c2-45d7-bce9-cf5c18fc7d15","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
||||
],
|
||||
"name":"s_node_magnitude",
|
||||
"nineSlice":null,
|
||||
"origin":4,
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/icons/value/number.yy",
|
||||
},
|
||||
"preMultiplyAlpha":false,
|
||||
"resourceType":"GMSprite",
|
||||
"resourceVersion":"2.0",
|
||||
"sequence":{
|
||||
"$GMSequence":"",
|
||||
"%Name":"s_node_magnitude",
|
||||
"autoRecord":true,
|
||||
"backdropHeight":768,
|
||||
"backdropImageOpacity":0.5,
|
||||
"backdropImagePath":"",
|
||||
"backdropWidth":1366,
|
||||
"backdropXOffset":0.0,
|
||||
"backdropYOffset":0.0,
|
||||
"events":{
|
||||
"$KeyframeStore<MessageEventKeyframe>":"",
|
||||
"Keyframes":[],
|
||||
"resourceType":"KeyframeStore<MessageEventKeyframe>",
|
||||
"resourceVersion":"2.0",
|
||||
},
|
||||
"eventStubScript":null,
|
||||
"eventToFunction":{},
|
||||
"length":1.0,
|
||||
"lockOrigin":false,
|
||||
"moments":{
|
||||
"$KeyframeStore<MomentsEventKeyframe>":"",
|
||||
"Keyframes":[],
|
||||
"resourceType":"KeyframeStore<MomentsEventKeyframe>",
|
||||
"resourceVersion":"2.0",
|
||||
},
|
||||
"name":"s_node_magnitude",
|
||||
"playback":1,
|
||||
"playbackSpeed":30.0,
|
||||
"playbackSpeedType":0,
|
||||
"resourceType":"GMSequence",
|
||||
"resourceVersion":"2.0",
|
||||
"showBackdrop":true,
|
||||
"showBackdropImage":false,
|
||||
"timeUnits":1,
|
||||
"tracks":[
|
||||
{"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore<SpriteFrameKeyframe>":"","Keyframes":[
|
||||
{"$Keyframe<SpriteFrameKeyframe>":"","Channels":{
|
||||
"0":{"$SpriteFrameKeyframe":"","Id":{"name":"9456dfd4-bf59-44e4-a813-614a3b8cfab2","path":"sprites/s_node_magnitude/s_node_magnitude.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||
},"Disabled":false,"id":"172e3779-0eff-4f8c-b586-0215184b9aa9","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"2.0","Stretch":false,},
|
||||
],"resourceType":"KeyframeStore<SpriteFrameKeyframe>","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,},
|
||||
],
|
||||
"visibleRange":null,
|
||||
"volume":1.0,
|
||||
"xorigin":32,
|
||||
"yorigin":32,
|
||||
},
|
||||
"swatchColours":null,
|
||||
"swfPrecision":0.5,
|
||||
"textureGroupId":{
|
||||
"name":"Default",
|
||||
"path":"texturegroups/Default",
|
||||
},
|
||||
"type":0,
|
||||
"VTile":false,
|
||||
"width":64,
|
||||
}
|
BIN
sprites/s_node_swizzle/e6ba1ca9-c331-4a28-bc05-ba4f4dec7165.png
Normal file
BIN
sprites/s_node_swizzle/e6ba1ca9-c331-4a28-bc05-ba4f4dec7165.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
90
sprites/s_node_swizzle/s_node_swizzle.yy
Normal file
90
sprites/s_node_swizzle/s_node_swizzle.yy
Normal file
@ -0,0 +1,90 @@
|
||||
{
|
||||
"$GMSprite":"",
|
||||
"%Name":"s_node_swizzle",
|
||||
"bboxMode":0,
|
||||
"bbox_bottom":60,
|
||||
"bbox_left":7,
|
||||
"bbox_right":56,
|
||||
"bbox_top":2,
|
||||
"collisionKind":1,
|
||||
"collisionTolerance":0,
|
||||
"DynamicTexturePage":false,
|
||||
"edgeFiltering":false,
|
||||
"For3D":false,
|
||||
"frames":[
|
||||
{"$GMSpriteFrame":"","%Name":"e6ba1ca9-c331-4a28-bc05-ba4f4dec7165","name":"e6ba1ca9-c331-4a28-bc05-ba4f4dec7165","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||
],
|
||||
"gridX":0,
|
||||
"gridY":0,
|
||||
"height":64,
|
||||
"HTile":false,
|
||||
"layers":[
|
||||
{"$GMImageLayer":"","%Name":"e7134dc6-2cd0-4ca9-99c9-6324dfba9108","blendMode":0,"displayName":"default","isLocked":false,"name":"e7134dc6-2cd0-4ca9-99c9-6324dfba9108","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
||||
],
|
||||
"name":"s_node_swizzle",
|
||||
"nineSlice":null,
|
||||
"origin":4,
|
||||
"parent":{
|
||||
"name":"number",
|
||||
"path":"folders/nodes/icons/value/number.yy",
|
||||
},
|
||||
"preMultiplyAlpha":false,
|
||||
"resourceType":"GMSprite",
|
||||
"resourceVersion":"2.0",
|
||||
"sequence":{
|
||||
"$GMSequence":"",
|
||||
"%Name":"s_node_swizzle",
|
||||
"autoRecord":true,
|
||||
"backdropHeight":768,
|
||||
"backdropImageOpacity":0.5,
|
||||
"backdropImagePath":"",
|
||||
"backdropWidth":1366,
|
||||
"backdropXOffset":0.0,
|
||||
"backdropYOffset":0.0,
|
||||
"events":{
|
||||
"$KeyframeStore<MessageEventKeyframe>":"",
|
||||
"Keyframes":[],
|
||||
"resourceType":"KeyframeStore<MessageEventKeyframe>",
|
||||
"resourceVersion":"2.0",
|
||||
},
|
||||
"eventStubScript":null,
|
||||
"eventToFunction":{},
|
||||
"length":1.0,
|
||||
"lockOrigin":false,
|
||||
"moments":{
|
||||
"$KeyframeStore<MomentsEventKeyframe>":"",
|
||||
"Keyframes":[],
|
||||
"resourceType":"KeyframeStore<MomentsEventKeyframe>",
|
||||
"resourceVersion":"2.0",
|
||||
},
|
||||
"name":"s_node_swizzle",
|
||||
"playback":1,
|
||||
"playbackSpeed":30.0,
|
||||
"playbackSpeedType":0,
|
||||
"resourceType":"GMSequence",
|
||||
"resourceVersion":"2.0",
|
||||
"showBackdrop":true,
|
||||
"showBackdropImage":false,
|
||||
"timeUnits":1,
|
||||
"tracks":[
|
||||
{"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore<SpriteFrameKeyframe>":"","Keyframes":[
|
||||
{"$Keyframe<SpriteFrameKeyframe>":"","Channels":{
|
||||
"0":{"$SpriteFrameKeyframe":"","Id":{"name":"e6ba1ca9-c331-4a28-bc05-ba4f4dec7165","path":"sprites/s_node_swizzle/s_node_swizzle.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||
},"Disabled":false,"id":"dd5c6081-4e42-4abe-93a0-1cf38388473b","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"2.0","Stretch":false,},
|
||||
],"resourceType":"KeyframeStore<SpriteFrameKeyframe>","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,},
|
||||
],
|
||||
"visibleRange":null,
|
||||
"volume":1.0,
|
||||
"xorigin":32,
|
||||
"yorigin":32,
|
||||
},
|
||||
"swatchColours":null,
|
||||
"swfPrecision":0.5,
|
||||
"textureGroupId":{
|
||||
"name":"Default",
|
||||
"path":"texturegroups/Default",
|
||||
},
|
||||
"type":0,
|
||||
"VTile":false,
|
||||
"width":64,
|
||||
}
|
Loading…
Reference in New Issue
Block a user