armature tools
|
@ -1775,6 +1775,9 @@
|
||||||
{"name":"s_biterator_tab_inactive","order":11,"path":"sprites/s_biterator_tab_inactive/s_biterator_tab_inactive.yy",},
|
{"name":"s_biterator_tab_inactive","order":11,"path":"sprites/s_biterator_tab_inactive/s_biterator_tab_inactive.yy",},
|
||||||
{"name":"s_biterator_toggler","order":13,"path":"sprites/s_biterator_toggler/s_biterator_toggler.yy",},
|
{"name":"s_biterator_toggler","order":13,"path":"sprites/s_biterator_toggler/s_biterator_toggler.yy",},
|
||||||
{"name":"s_bone_IK","order":8,"path":"sprites/s_bone_IK/s_bone_IK.yy",},
|
{"name":"s_bone_IK","order":8,"path":"sprites/s_bone_IK/s_bone_IK.yy",},
|
||||||
|
{"name":"s_bone_move","order":14,"path":"sprites/s_bone_move/s_bone_move.yy",},
|
||||||
|
{"name":"s_bone_rotate","order":15,"path":"sprites/s_bone_rotate/s_bone_rotate.yy",},
|
||||||
|
{"name":"s_bone_scale","order":16,"path":"sprites/s_bone_scale/s_bone_scale.yy",},
|
||||||
{"name":"s_bone_tool_add","order":4,"path":"sprites/s_bone_tool_add/s_bone_tool_add.yy",},
|
{"name":"s_bone_tool_add","order":4,"path":"sprites/s_bone_tool_add/s_bone_tool_add.yy",},
|
||||||
{"name":"s_bone_tool_detach","order":5,"path":"sprites/s_bone_tool_detach/s_bone_tool_detach.yy",},
|
{"name":"s_bone_tool_detach","order":5,"path":"sprites/s_bone_tool_detach/s_bone_tool_detach.yy",},
|
||||||
{"name":"s_bone_tool_IK","order":6,"path":"sprites/s_bone_tool_IK/s_bone_tool_IK.yy",},
|
{"name":"s_bone_tool_IK","order":6,"path":"sprites/s_bone_tool_IK/s_bone_tool_IK.yy",},
|
||||||
|
|
|
@ -2472,6 +2472,9 @@
|
||||||
{"id":{"name":"s_biterator_tab_inactive","path":"sprites/s_biterator_tab_inactive/s_biterator_tab_inactive.yy",},},
|
{"id":{"name":"s_biterator_tab_inactive","path":"sprites/s_biterator_tab_inactive/s_biterator_tab_inactive.yy",},},
|
||||||
{"id":{"name":"s_biterator_toggler","path":"sprites/s_biterator_toggler/s_biterator_toggler.yy",},},
|
{"id":{"name":"s_biterator_toggler","path":"sprites/s_biterator_toggler/s_biterator_toggler.yy",},},
|
||||||
{"id":{"name":"s_bone_IK","path":"sprites/s_bone_IK/s_bone_IK.yy",},},
|
{"id":{"name":"s_bone_IK","path":"sprites/s_bone_IK/s_bone_IK.yy",},},
|
||||||
|
{"id":{"name":"s_bone_move","path":"sprites/s_bone_move/s_bone_move.yy",},},
|
||||||
|
{"id":{"name":"s_bone_rotate","path":"sprites/s_bone_rotate/s_bone_rotate.yy",},},
|
||||||
|
{"id":{"name":"s_bone_scale","path":"sprites/s_bone_scale/s_bone_scale.yy",},},
|
||||||
{"id":{"name":"s_bone_tool_add","path":"sprites/s_bone_tool_add/s_bone_tool_add.yy",},},
|
{"id":{"name":"s_bone_tool_add","path":"sprites/s_bone_tool_add/s_bone_tool_add.yy",},},
|
||||||
{"id":{"name":"s_bone_tool_detach","path":"sprites/s_bone_tool_detach/s_bone_tool_detach.yy",},},
|
{"id":{"name":"s_bone_tool_detach","path":"sprites/s_bone_tool_detach/s_bone_tool_detach.yy",},},
|
||||||
{"id":{"name":"s_bone_tool_IK","path":"sprites/s_bone_tool_IK/s_bone_tool_IK.yy",},},
|
{"id":{"name":"s_bone_tool_IK","path":"sprites/s_bone_tool_IK/s_bone_tool_IK.yy",},},
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length = 0, node = noone) constructor {
|
function __Bone(_parent = noone, _distance = 0, _direction = 0, _angle = 0, _length = 0, _node = noone) constructor {
|
||||||
ID = UUID_generate();
|
ID = UUID_generate();
|
||||||
name = "New bone";
|
name = "New bone";
|
||||||
|
|
||||||
self.distance = distance;
|
self.distance = _distance;
|
||||||
self.direction = direction;
|
self.direction = _direction;
|
||||||
self.angle = angle;
|
self.angle = _angle;
|
||||||
self.length = length;
|
self.length = _length;
|
||||||
self.node = node;
|
self.node = _node;
|
||||||
|
|
||||||
init_length = length;
|
init_length = _length;
|
||||||
init_angle = angle;
|
init_angle = _angle;
|
||||||
init_direction = 0;
|
init_direction = 0;
|
||||||
init_distance = 0;
|
init_distance = 0;
|
||||||
|
|
||||||
|
@ -53,6 +53,9 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
direction = parent.angle;
|
direction = parent.angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
control_x0 = 0; control_y0 = 0; control_i0 = 0;
|
||||||
|
control_x1 = 0; control_y1 = 0; control_i1 = 0;
|
||||||
|
|
||||||
static addChild = function(bone) {
|
static addChild = function(bone) {
|
||||||
array_push(childs, bone);
|
array_push(childs, bone);
|
||||||
bone.parent = self;
|
bone.parent = self;
|
||||||
|
@ -74,27 +77,23 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
}
|
}
|
||||||
|
|
||||||
static findBone = function(_id) {
|
static findBone = function(_id) {
|
||||||
if(ID == _id)
|
if(ID == _id) return self;
|
||||||
return self;
|
|
||||||
|
|
||||||
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
||||||
var b = childs[i].findBone(_id);
|
var b = childs[i].findBone(_id);
|
||||||
if(b != noone)
|
if(b != noone) return b;
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return noone;
|
return noone;
|
||||||
}
|
}
|
||||||
|
|
||||||
static findBoneByName = function(_name) {
|
static findBoneByName = function(_name) {
|
||||||
//print($"Print {string_length(string_trim(name))} : {string_length(string_trim(_name))}");
|
|
||||||
if(string_trim(name) == string_trim(_name))
|
if(string_trim(name) == string_trim(_name))
|
||||||
return self;
|
return self;
|
||||||
|
|
||||||
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
||||||
var b = childs[i].findBoneByName(_name);
|
var b = childs[i].findBoneByName(_name);
|
||||||
if(b != noone)
|
if(b != noone) return b;
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return noone;
|
return noone;
|
||||||
|
@ -104,11 +103,22 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
static getTail = function(pose = true) { return pose? bone_tail_pose.clone() : bone_tail_init.clone(); }
|
static getTail = function(pose = true) { return pose? bone_tail_pose.clone() : bone_tail_init.clone(); }
|
||||||
|
|
||||||
static getPoint = function(progress, pose = true) {
|
static getPoint = function(progress, pose = true) {
|
||||||
var _len = pose? length : init_length;
|
var _dir, _dis, _len, _ang;
|
||||||
var _ang = pose? angle : init_angle;
|
|
||||||
|
|
||||||
var _dir = pose? direction : init_direction;
|
if(pose) {
|
||||||
var _dis = pose? distance : init_distance;
|
_dir = direction;
|
||||||
|
_dis = distance;
|
||||||
|
|
||||||
|
_len = length;
|
||||||
|
_ang = angle;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
_dir = init_direction;
|
||||||
|
_dis = init_distance;
|
||||||
|
|
||||||
|
_len = init_length;
|
||||||
|
_ang = init_angle;
|
||||||
|
}
|
||||||
|
|
||||||
var len = _len * progress;
|
var len = _len * progress;
|
||||||
|
|
||||||
|
@ -134,9 +144,6 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
return hover;
|
return hover;
|
||||||
}
|
}
|
||||||
|
|
||||||
control_x0 = 0; control_y0 = 0; control_i0 = 0;
|
|
||||||
control_x1 = 0; control_y1 = 0; control_i1 = 0;
|
|
||||||
|
|
||||||
static _drawBone = function(attributes, edit = false, _x = 0, _y = 0, _s = 1, _mx = 0, _my = 0, _hover = noone, _select = noone, _blend = c_white, _alpha = 1) {
|
static _drawBone = function(attributes, edit = false, _x = 0, _y = 0, _s = 1, _mx = 0, _my = 0, _hover = noone, _select = noone, _blend = c_white, _alpha = 1) {
|
||||||
var hover = noone;
|
var hover = noone;
|
||||||
|
|
||||||
|
@ -152,8 +159,7 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
|
|
||||||
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
||||||
var h = childs[i]._drawBone(attributes, edit, _x, _y, _s, _mx, _my, _hover, _select, _blend, _alpha);
|
var h = childs[i]._drawBone(attributes, edit, _x, _y, _s, _mx, _my, _hover, _select, _blend, _alpha);
|
||||||
if(hover == noone && h != noone)
|
if(hover == noone && h != noone) hover = h;
|
||||||
hover = h;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return hover;
|
return hover;
|
||||||
|
@ -324,11 +330,15 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
childs[i].resetPose();
|
childs[i].resetPose();
|
||||||
}
|
}
|
||||||
|
|
||||||
static setPosition = function() {
|
static __setPosition = function() {
|
||||||
bone_head_init = getPoint(0, false);
|
bone_head_init = getPoint(0, false);
|
||||||
bone_head_pose = getPoint(0, true);
|
bone_head_pose = getPoint(0, true);
|
||||||
bone_tail_init = getPoint(1, false);
|
bone_tail_init = getPoint(1, false);
|
||||||
bone_tail_pose = getPoint(1, true);
|
bone_tail_pose = getPoint(1, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
static setPosition = function() {
|
||||||
|
__setPosition();
|
||||||
|
|
||||||
for( var i = 0, n = array_length(childs); i < n; i++ )
|
for( var i = 0, n = array_length(childs); i < n; i++ )
|
||||||
childs[i].setPosition();
|
childs[i].setPosition();
|
||||||
|
@ -508,6 +518,8 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
}
|
}
|
||||||
|
|
||||||
static __getBBOX = function() {
|
static __getBBOX = function() {
|
||||||
|
if(is_main) return noone;
|
||||||
|
|
||||||
var p0 = bone_head_pose;
|
var p0 = bone_head_pose;
|
||||||
var p1 = bone_tail_pose;
|
var p1 = bone_tail_pose;
|
||||||
|
|
||||||
|
@ -521,16 +533,17 @@ function __Bone(_parent = noone, distance = 0, direction = 0, angle = 0, length
|
||||||
|
|
||||||
static bbox = function() {
|
static bbox = function() {
|
||||||
var _bbox = __getBBOX();
|
var _bbox = __getBBOX();
|
||||||
//print($"BBOX: {_bbox}")
|
|
||||||
|
|
||||||
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
for( var i = 0, n = array_length(childs); i < n; i++ ) {
|
||||||
var _bbox_ch = childs[i].bbox();
|
var _bbox_ch = childs[i].bbox();
|
||||||
//print($"BBOX ch: {_bbox_ch}")
|
|
||||||
|
|
||||||
_bbox[0] = min(_bbox[0], _bbox_ch[0]);
|
if(is_array(_bbox)) {
|
||||||
_bbox[1] = min(_bbox[1], _bbox_ch[1]);
|
_bbox[0] = min(_bbox[0], _bbox_ch[0]);
|
||||||
_bbox[2] = max(_bbox[2], _bbox_ch[2]);
|
_bbox[1] = min(_bbox[1], _bbox_ch[1]);
|
||||||
_bbox[3] = max(_bbox[3], _bbox_ch[3]);
|
_bbox[2] = max(_bbox[2], _bbox_ch[2]);
|
||||||
|
_bbox[3] = max(_bbox[3], _bbox_ch[3]);
|
||||||
|
|
||||||
|
} else _bbox = _bbox_ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _bbox;
|
return _bbox;
|
||||||
|
|
|
@ -2,8 +2,6 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
name = "Armature Create";
|
name = "Armature Create";
|
||||||
setDimension(96, 72);
|
setDimension(96, 72);
|
||||||
|
|
||||||
//newInput(0, nodeValue_Int("Axis", self, 0));
|
|
||||||
|
|
||||||
bone_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) {
|
bone_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) {
|
||||||
var _b = bones;
|
var _b = bones;
|
||||||
if(_b == noone) return 0;
|
if(_b == noone) return 0;
|
||||||
|
@ -133,58 +131,56 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
var bone = new __Bone(parent, distance, direction,,, self);
|
var bone = new __Bone(parent, distance, direction,,, self);
|
||||||
parent.addChild(bone);
|
parent.addChild(bone);
|
||||||
|
|
||||||
if(parent == bones)
|
if(parent == bones) bone.parent_anchor = false;
|
||||||
bone.parent_anchor = false;
|
|
||||||
return bone;
|
return bone;
|
||||||
}
|
}
|
||||||
|
|
||||||
newOutput(0, nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone));
|
newOutput(0, nodeValue_Output("Armature", self, VALUE_TYPE.armature, noone));
|
||||||
|
|
||||||
#region ++++ attributes ++++
|
#region ++++ attributes ++++
|
||||||
bones = new __Bone(,,,,, self);
|
bones = new __Bone(,,,,, self);
|
||||||
bones.name = "Main";
|
bones.name = "Main";
|
||||||
bones.is_main = true;
|
bones.is_main = true;
|
||||||
bones.node = self;
|
bones.node = self;
|
||||||
|
|
||||||
attributes.display_name = true;
|
attributes.display_name = true;
|
||||||
attributes.display_bone = 0;
|
attributes.display_bone = 0;
|
||||||
|
|
||||||
array_push(attributeEditors, "Display");
|
array_push(attributeEditors, "Display");
|
||||||
array_push(attributeEditors, ["Display name", function() { return attributes.display_name; },
|
array_push(attributeEditors, ["Display name", function() /*=>*/ {return attributes.display_name}, new checkBox(function() /*=>*/ { attributes.display_name = !attributes.display_name; })]);
|
||||||
new checkBox(function() {
|
array_push(attributeEditors, ["Display bone", function() /*=>*/ {return attributes.display_bone}, new scrollBox(["Octahedral", "Stick"], function(ind) /*=>*/ { attributes.display_bone = ind; })]);
|
||||||
attributes.display_name = !attributes.display_name;
|
|
||||||
})]);
|
|
||||||
array_push(attributeEditors, ["Display bone", function() { return attributes.display_bone; },
|
|
||||||
new scrollBox(["Octahedral", "Stick"], function(ind) {
|
|
||||||
attributes.display_bone = ind;
|
|
||||||
})]);
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
tools = [
|
tools = [
|
||||||
new NodeTool( [ "Move", "Scale" ], [ THEME.bone_tool_move, THEME.bone_tool_scale ] ),
|
new NodeTool( "Transform", THEME.bone_tool_move ),
|
||||||
new NodeTool( "Add bones", THEME.bone_tool_add ),
|
new NodeTool( "Add bones", THEME.bone_tool_add ),
|
||||||
new NodeTool( "Remove bones", THEME.bone_tool_remove ),
|
new NodeTool( "Remove bones", THEME.bone_tool_remove ),
|
||||||
new NodeTool( "Detach bones", THEME.bone_tool_detach ),
|
new NodeTool( "Detach bones", THEME.bone_tool_detach ),
|
||||||
new NodeTool( "IK", THEME.bone_tool_IK ),
|
new NodeTool( "IK", THEME.bone_tool_IK ),
|
||||||
];
|
];
|
||||||
|
|
||||||
anchor_selecting = noone;
|
anchor_selecting = noone;
|
||||||
builder_bone = noone;
|
builder_bone = noone;
|
||||||
builder_type = 0;
|
builder_type = 0;
|
||||||
|
builder_sv = 0;
|
||||||
builder_sx = 0;
|
builder_sx = 0;
|
||||||
builder_sy = 0;
|
builder_sy = 0;
|
||||||
builder_mx = 0;
|
builder_mx = 0;
|
||||||
builder_my = 0;
|
builder_my = 0;
|
||||||
|
|
||||||
builder_moving = false;
|
|
||||||
builder_scaling = false;
|
|
||||||
|
|
||||||
bone_dragging = noone;
|
bone_dragging = noone;
|
||||||
ik_dragging = noone;
|
ik_dragging = noone;
|
||||||
|
|
||||||
moving = false;
|
moving = false;
|
||||||
scaling = false;
|
scaling = false;
|
||||||
|
|
||||||
|
bone_arr = [];
|
||||||
|
bone_point_maps = [];
|
||||||
|
bone_point_mape = [];
|
||||||
|
|
||||||
|
bone_transform_bbox = -1;
|
||||||
|
bone_transform_type = -1;
|
||||||
|
|
||||||
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
|
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
|
||||||
var mx = (_mx - _x) / _s;
|
var mx = (_mx - _x) / _s;
|
||||||
var my = (_my - _y) / _s;
|
var my = (_my - _y) / _s;
|
||||||
|
@ -195,20 +191,29 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
var _b = bones;
|
var _b = bones;
|
||||||
|
|
||||||
if(builder_bone != noone) {
|
if(builder_bone != noone) {
|
||||||
anchor_selecting = _b.draw(attributes, false, _x, _y, _s, _mx, _my, anchor_selecting);
|
anchor_selecting = _b.draw(attributes, false, _x, _y, _s, _mx, _my, anchor_selecting, builder_bone);
|
||||||
|
|
||||||
var dir = point_direction(builder_sx, builder_sy, smx, smy);
|
var dir = point_direction(builder_sx, builder_sy, smx, smy);
|
||||||
var dis = point_distance(builder_sx, builder_sy, smx, smy);
|
var dis = point_distance(builder_sx, builder_sy, smx, smy);
|
||||||
|
|
||||||
if(builder_type == 2) {
|
if(builder_type == 2) {
|
||||||
var bx = builder_sx + (smx - builder_mx);
|
var an = point_direction(builder_sx, builder_sy, mx, my);
|
||||||
var by = builder_sy + (smy - builder_my);
|
builder_bone.angle += angle_difference(an, builder_sv);
|
||||||
|
builder_sv = an;
|
||||||
|
|
||||||
if(!builder_bone.parent_anchor) {
|
var _rx = _x + _s * builder_sx;
|
||||||
builder_bone.direction = point_direction(0, 0, bx, by);
|
var _ry = _y + _s * builder_sy;
|
||||||
builder_bone.distance = point_distance( 0, 0, bx, by);
|
draw_sprite_ext(s_bone_rotate, 0, _rx, _ry, 1, 1, builder_bone.angle, COLORS._main_value_positive, 1);
|
||||||
}
|
|
||||||
|
} else if(builder_type == 3) {
|
||||||
|
|
||||||
|
builder_bone.length = point_distance(builder_sx, builder_sy, mx, my) / builder_sv;
|
||||||
|
|
||||||
|
orig = builder_bone.getPoint(0.75);
|
||||||
|
var _rx = _x + _s * orig.x;
|
||||||
|
var _ry = _y + _s * orig.y;
|
||||||
|
draw_sprite_ext(s_bone_scale, 0, _rx, _ry, 1, 1, builder_bone.angle, COLORS._main_value_positive, 1);
|
||||||
|
|
||||||
} else if(key_mod_press(ALT)) {
|
} else if(key_mod_press(ALT)) {
|
||||||
if(builder_type == 0) {
|
if(builder_type == 0) {
|
||||||
var bo = builder_bone.getTail();
|
var bo = builder_bone.getTail();
|
||||||
|
@ -252,10 +257,22 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
var inRange = point_in_circle(_mx, _my, par_ancx, par_ancy, 16) && mouse_release(mb_left);
|
var inRange = point_in_circle(_mx, _my, par_ancx, par_ancy, 16) && mouse_release(mb_left);
|
||||||
if(!builder_bone.parent.is_main && builder_bone.IKlength > 0 && inRange)
|
if(!builder_bone.parent.is_main && builder_bone.IKlength > 0 && inRange)
|
||||||
builder_bone.parent_anchor = true;
|
builder_bone.parent_anchor = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
orig = builder_bone.getHead();
|
||||||
|
var _rx = _x + _s * orig.x;
|
||||||
|
var _ry = _y + _s * orig.y;
|
||||||
|
draw_sprite_ext(s_bone_move, 0, _rx, _ry, 1, 1, 0, COLORS._main_value_positive, 1);
|
||||||
|
|
||||||
} else if(builder_type == 1) {
|
} else if(builder_type == 1) {
|
||||||
builder_bone.angle = dir;
|
builder_bone.angle = dir;
|
||||||
builder_bone.length = dis;
|
builder_bone.length = dis;
|
||||||
|
|
||||||
|
orig = builder_bone.getTail();
|
||||||
|
var _rx = _x + _s * orig.x;
|
||||||
|
var _ry = _y + _s * orig.y;
|
||||||
|
draw_sprite_ext(s_bone_move, 0, _rx, _ry, 1, 1, 0, COLORS._main_value_positive, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,115 +347,144 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isUsingTool("Move")) {
|
if(isUsingTool("Transform")) {
|
||||||
_b.draw(attributes, false, _x, _y, _s, _mx, _my);
|
_b.draw(attributes, false, _x, _y, _s, _mx, _my);
|
||||||
|
|
||||||
var bbox = _b.bbox();
|
var bbox = _b.bbox();
|
||||||
|
if(!is_array(bbox)) return;
|
||||||
|
|
||||||
var x0 = _x + bbox[0] * _s;
|
var x0 = _x + bbox[0] * _s;
|
||||||
var y0 = _y + bbox[1] * _s;
|
var y0 = _y + bbox[1] * _s;
|
||||||
|
|
||||||
var x1 = _x + bbox[2] * _s;
|
var x1 = _x + bbox[2] * _s;
|
||||||
var y1 = _y + bbox[3] * _s;
|
var y1 = _y + bbox[3] * _s;
|
||||||
|
|
||||||
if(builder_moving) {
|
if(bone_transform_type >= 0) {
|
||||||
var dx = (mx - builder_mx) / _s;
|
var dx = mx - builder_mx;
|
||||||
var dy = (my - builder_my) / _s;
|
var dy = my - builder_my;
|
||||||
|
|
||||||
builder_mx = mx;
|
var ox0 = bone_transform_bbox[0], oy0 = bone_transform_bbox[1];
|
||||||
builder_my = my;
|
var ox1 = bone_transform_bbox[2], oy1 = bone_transform_bbox[3];
|
||||||
|
var ow = ox1 - ox0;
|
||||||
|
var oh = oy1 - oy0;
|
||||||
|
|
||||||
var _bx = lengthdir_x(_b.distance, _b.direction) + dx;
|
var nx0 = ox0, ny0 = oy0;
|
||||||
var _by = lengthdir_y(_b.distance, _b.direction) + dy;
|
var nx1 = ox1, ny1 = oy1;
|
||||||
|
|
||||||
_b.distance = point_distance(0, 0, _bx, _by);
|
switch(bone_transform_type) { // transform
|
||||||
_b.direction = point_direction(0, 0, _bx, _by);
|
case 0 :
|
||||||
|
nx0 = ox0 + dx;
|
||||||
|
ny0 = oy0 + dy;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1 :
|
||||||
|
nx1 = ox1 + dx;
|
||||||
|
ny0 = oy0 + dy;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2 :
|
||||||
|
nx0 = ox0 + dx;
|
||||||
|
ny1 = oy1 + dy;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3 :
|
||||||
|
nx1 = ox1 + dx;
|
||||||
|
ny1 = oy1 + dy;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4 :
|
||||||
|
nx0 = ox0 + dx;
|
||||||
|
ny0 = oy0 + dy;
|
||||||
|
nx1 = ox1 + dx;
|
||||||
|
ny1 = oy1 + dy;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
var nw = nx1 - nx0;
|
||||||
|
var nh = ny1 - ny0;
|
||||||
|
|
||||||
|
for( var i = 0, n = array_length(bone_point_maps); i < n; i++ ) {
|
||||||
|
var _bmap = bone_point_maps[i];
|
||||||
|
var _emap = bone_point_mape[i];
|
||||||
|
|
||||||
|
_emap[0].x = (_bmap[0].x - ox0) / ow * nw + nx0;
|
||||||
|
_emap[0].y = (_bmap[0].y - oy0) / oh * nh + ny0;
|
||||||
|
|
||||||
|
_emap[1].x = (_bmap[1].x - ox0) / ow * nw + nx0;
|
||||||
|
_emap[1].y = (_bmap[1].y - oy0) / oh * nh + ny0;
|
||||||
|
}
|
||||||
|
|
||||||
|
for( var i = 0, n = array_length(bone_arr); i < n; i++ ) {
|
||||||
|
var _bone = bone_arr[i];
|
||||||
|
var _emap = bone_point_mape[i];
|
||||||
|
|
||||||
|
var _h = _emap[0];
|
||||||
|
var _t = _emap[1];
|
||||||
|
|
||||||
|
if(!_bone.parent_anchor) {
|
||||||
|
var _ox = 0;
|
||||||
|
var _oy = 0;
|
||||||
|
|
||||||
|
if(_bone.parent) {
|
||||||
|
var _ph = _bone.parent.getHead();
|
||||||
|
_ox = _ph.x;
|
||||||
|
_oy = _ph.y;
|
||||||
|
}
|
||||||
|
|
||||||
|
_bone.distance = point_distance( _ox, _oy, _h.x, _h.y );
|
||||||
|
_bone.direction = point_direction( _ox, _oy, _h.x, _h.y );
|
||||||
|
}
|
||||||
|
|
||||||
|
_bone.length = point_distance(_h.x, _h.y, _t.x, _t.y);
|
||||||
|
_bone.angle = point_direction(_h.x, _h.y, _t.x, _t.y);
|
||||||
|
|
||||||
|
_bone.__setPosition();
|
||||||
|
}
|
||||||
|
|
||||||
if(mouse_release(mb_left)) {
|
if(mouse_release(mb_left)) {
|
||||||
builder_moving = false;
|
bone_transform_type = -1;
|
||||||
UNDO_HOLDING = false;
|
UNDO_HOLDING = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
triggerRender();
|
||||||
|
|
||||||
draw_set_color(COLORS._main_accent);
|
draw_set_color(COLORS._main_accent);
|
||||||
draw_rectangle(x0, y0, x1, y1, true);
|
draw_rectangle(x0, y0, x1, y1, true);
|
||||||
} else {
|
|
||||||
if(point_in_rectangle(_mx, _my, x0, y0, x1, y1)) {
|
|
||||||
draw_set_color(COLORS._main_accent);
|
|
||||||
if(mouse_press(mb_left, active)) {
|
|
||||||
builder_moving = true;
|
|
||||||
builder_mx = mx;
|
|
||||||
builder_my = my;
|
|
||||||
|
|
||||||
recordAction(ACTION_TYPE.struct_modify, bones, bones.serialize());
|
|
||||||
}
|
|
||||||
} else
|
|
||||||
draw_set_color(c_white);
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
var _hov_type = -1;
|
||||||
|
var _r = 8;
|
||||||
|
|
||||||
|
if(point_in_circle(_mx, _my, x0, y0, _r + 2)) _hov_type = 0;
|
||||||
|
else if(point_in_circle(_mx, _my, x1, y0, _r + 2)) _hov_type = 1;
|
||||||
|
else if(point_in_circle(_mx, _my, x0, y1, _r + 2)) _hov_type = 2;
|
||||||
|
else if(point_in_circle(_mx, _my, x1, y1, _r + 2)) _hov_type = 3;
|
||||||
|
else if(point_in_rectangle(_mx, _my, x0, y0, x1, y1)) _hov_type = 4;
|
||||||
|
|
||||||
|
draw_set_color(_hov_type == 4? COLORS._main_accent : c_white);
|
||||||
draw_set_alpha(0.5);
|
draw_set_alpha(0.5);
|
||||||
draw_rectangle(x0, y0, x1, y1, true);
|
draw_rectangle(x0, y0, x1, y1, true);
|
||||||
draw_set_alpha(1);
|
draw_set_alpha(1);
|
||||||
}
|
|
||||||
|
|
||||||
} else if(isUsingTool("Scale")) {
|
|
||||||
_b.draw(attributes, false, _x, _y, _s, _mx, _my);
|
|
||||||
|
|
||||||
var bbox = _b.bbox();
|
|
||||||
var x0 = _x + bbox[0] * _s;
|
|
||||||
var y0 = _y + bbox[1] * _s;
|
|
||||||
var x1 = _x + bbox[2] * _s;
|
|
||||||
var y1 = _y + bbox[3] * _s;
|
|
||||||
|
|
||||||
draw_set_color(c_white);
|
|
||||||
draw_set_alpha(0.5);
|
|
||||||
draw_rectangle(x0, y0, x1, y1, true);
|
|
||||||
draw_set_alpha(1);
|
|
||||||
|
|
||||||
var cx = (x0 + x1) / 2;
|
|
||||||
var cy = (y0 + y1) / 2;
|
|
||||||
|
|
||||||
draw_set_color(COLORS._main_accent);
|
|
||||||
draw_set_alpha(0.5 + builder_scaling * 0.5);
|
|
||||||
draw_line(cx, cy, _mx, _my);
|
|
||||||
draw_set_alpha(1);
|
|
||||||
|
|
||||||
if(builder_scaling) {
|
|
||||||
var _so = point_distance(cx, cy, builder_mx, builder_my);
|
|
||||||
var _sn = point_distance(cx, cy, _mx, _my);
|
|
||||||
var _ss = 1 + (_sn - _so) / max(_so, 8);
|
|
||||||
|
|
||||||
builder_mx = _mx;
|
|
||||||
builder_my = _my;
|
|
||||||
|
|
||||||
var _bst = ds_stack_create();
|
draw_anchor(_hov_type == 0, x0, y0, _r);
|
||||||
ds_stack_push(_bst, _b);
|
draw_anchor(_hov_type == 1, x1, y0, _r);
|
||||||
|
draw_anchor(_hov_type == 2, x0, y1, _r);
|
||||||
while(!ds_stack_empty(_bst)) {
|
draw_anchor(_hov_type == 3, x1, y1, _r);
|
||||||
var __b = ds_stack_pop(_bst);
|
|
||||||
for( var i = 0, n = array_length(__b.childs); i < n; i++ )
|
if(_hov_type >= -1 && mouse_press(mb_left, active)) {
|
||||||
ds_stack_push(_bst, __b.childs[i]);
|
bone_arr = _b.toArray();
|
||||||
|
for( var i = 0, n = array_length(bone_arr); i < n; i++ ) {
|
||||||
|
var _h = bone_arr[i].getHead();
|
||||||
|
var _t = bone_arr[i].getTail();
|
||||||
|
|
||||||
__b.distance *= _ss;
|
bone_point_maps[i] = [ _h, _t ];
|
||||||
__b.length *= _ss;
|
bone_point_mape[i] = [ _h.clone(), _t.clone() ];
|
||||||
}
|
}
|
||||||
|
|
||||||
ds_stack_destroy(_bst);
|
|
||||||
|
|
||||||
var bbox_n = _b.bbox();
|
|
||||||
var _ox = (bbox[0] + bbox[2]) / 2 - (bbox_n[0] + bbox_n[2]) / 2;
|
|
||||||
var _oy = (bbox[1] + bbox[3]) / 2 - (bbox_n[1] + bbox_n[3]) / 2;
|
|
||||||
|
|
||||||
var _bx = lengthdir_x(_b.distance, _b.direction) + _ox;
|
|
||||||
var _by = lengthdir_y(_b.distance, _b.direction) + _oy;
|
|
||||||
|
|
||||||
_b.distance = point_distance(0, 0, _bx, _by);
|
|
||||||
_b.direction = point_direction(0, 0, _bx, _by);
|
|
||||||
|
|
||||||
if(mouse_release(mb_left)) {
|
bone_transform_type = _hov_type;
|
||||||
builder_scaling = false;
|
bone_transform_bbox = _b.bbox();
|
||||||
}
|
builder_mx = mx;
|
||||||
} else {
|
builder_my = my;
|
||||||
if(mouse_press(mb_left, active)) {
|
|
||||||
builder_scaling = true;
|
|
||||||
builder_mx = _mx;
|
|
||||||
builder_my = _my;
|
|
||||||
|
|
||||||
recordAction(ACTION_TYPE.struct_modify, bones, bones.serialize());
|
recordAction(ACTION_TYPE.struct_modify, bones, bones.serialize());
|
||||||
}
|
}
|
||||||
|
@ -520,18 +566,22 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
anchor_selecting = _b.draw(attributes, active * 0b100, _x, _y, _s, _mx, _my, anchor_selecting);
|
anchor_selecting = _b.draw(attributes, active * 0b100, _x, _y, _s, _mx, _my, anchor_selecting);
|
||||||
|
|
||||||
if(anchor_selecting != noone && anchor_selecting[1] == 2 && mouse_press(mb_left, active)) {
|
if(anchor_selecting != noone && anchor_selecting[1] == 2 && mouse_press(mb_left, active)) {
|
||||||
builder_bone = anchor_selecting[0];
|
var detach_bone = anchor_selecting[0];
|
||||||
builder_type = anchor_selecting[1];
|
|
||||||
|
|
||||||
var par = builder_bone.parent;
|
var par = detach_bone.parent;
|
||||||
if(builder_bone.parent_anchor) {
|
if(detach_bone.parent_anchor) {
|
||||||
builder_bone.distance = par.length;
|
detach_bone.distance = par.length;
|
||||||
builder_bone.direction = par.angle;
|
detach_bone.direction = par.angle;
|
||||||
}
|
}
|
||||||
builder_bone.parent_anchor = false;
|
detach_bone.parent_anchor = false;
|
||||||
|
|
||||||
builder_sx = lengthdir_x(builder_bone.distance, builder_bone.direction);
|
builder_bone = detach_bone;
|
||||||
builder_sy = lengthdir_y(builder_bone.distance, builder_bone.direction);
|
builder_type = 0;
|
||||||
|
|
||||||
|
var head = par.getHead();
|
||||||
|
var tail = par.getTail();
|
||||||
|
builder_sx = head.x + (mx - tail.x);
|
||||||
|
builder_sy = head.y + (my - tail.y);
|
||||||
builder_mx = mx;
|
builder_mx = mx;
|
||||||
builder_my = my;
|
builder_my = my;
|
||||||
UNDO_HOLDING = true;
|
UNDO_HOLDING = true;
|
||||||
|
@ -545,41 +595,82 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
ik_dragging = anchor_selecting[0];
|
ik_dragging = anchor_selecting[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
} else { //mover
|
} else { //mo tools
|
||||||
if(builder_bone == noone)
|
if(builder_bone == noone)
|
||||||
anchor_selecting = _b.draw(attributes, active * 0b111, _x, _y, _s, _mx, _my, anchor_selecting);
|
anchor_selecting = _b.draw(attributes, active * 0b111, _x, _y, _s, _mx, _my, anchor_selecting);
|
||||||
|
|
||||||
if(anchor_selecting != noone && mouse_press(mb_left, active)) {
|
if(anchor_selecting != noone) {
|
||||||
builder_bone = anchor_selecting[0];
|
var orig;
|
||||||
builder_type = anchor_selecting[1];
|
var _bne = anchor_selecting[0];
|
||||||
|
var _typ = anchor_selecting[1];
|
||||||
|
|
||||||
recordAction(ACTION_TYPE.struct_modify, bones, bones.serialize());
|
gpu_set_texfilter(true);
|
||||||
|
|
||||||
if(builder_type == 0) {
|
if(_typ == 0) { // free move
|
||||||
var orig = builder_bone.parent.getHead();
|
orig = _bne.getHead();
|
||||||
builder_sx = orig.x;
|
draw_sprite_ext(s_bone_move, 0, _x + _s * orig.x, _y + _s * orig.y, 1, 1, 0, COLORS._main_accent, 1);
|
||||||
builder_sy = orig.y;
|
|
||||||
|
|
||||||
} else if(builder_type == 1) {
|
} else if(_typ == 1) { // bone move
|
||||||
var orig = builder_bone.getHead();
|
orig = _bne.getTail();
|
||||||
builder_sx = orig.x;
|
draw_sprite_ext(s_bone_move, 0, _x + _s * orig.x, _y + _s * orig.y, 1, 1, 0, COLORS._main_accent, 1);
|
||||||
builder_sy = orig.y;
|
|
||||||
|
|
||||||
} else if(builder_type == 2) {
|
} else if(_typ == 2) { // bone rotate
|
||||||
if(builder_bone.parent_anchor) {
|
orig = _bne.getHead();
|
||||||
builder_bone = noone;
|
var _rx = _x + _s * orig.x;
|
||||||
|
var _ry = _y + _s * orig.y;
|
||||||
|
|
||||||
|
orig = _bne.getPoint(0.8);
|
||||||
|
var _sx = _x + _s * orig.x;
|
||||||
|
var _sy = _y + _s * orig.y;
|
||||||
|
|
||||||
|
if(point_in_circle(_mx, _my, _sx, _sy, 12)) {
|
||||||
|
draw_sprite_ext(s_bone_scale, 0, _sx, _sy, 1, 1, _bne.angle, COLORS._main_accent, 1);
|
||||||
|
draw_sprite_ext(s_bone_rotate, 0, _rx, _ry, 1, 1, _bne.angle, c_white, 1);
|
||||||
|
_typ = 3;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
var par = builder_bone.parent;
|
draw_sprite_ext(s_bone_scale, 0, _sx, _sy, 1, 1, _bne.angle, c_white, 1);
|
||||||
builder_sx = lengthdir_x(builder_bone.distance, builder_bone.direction);
|
draw_sprite_ext(s_bone_rotate, 0, _rx, _ry, 1, 1, _bne.angle, COLORS._main_accent, 1);
|
||||||
builder_sy = lengthdir_y(builder_bone.distance, builder_bone.direction);
|
_typ = 2;
|
||||||
builder_mx = mx;
|
|
||||||
builder_my = my;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UNDO_HOLDING = true;
|
gpu_set_texfilter(false);
|
||||||
|
|
||||||
|
if(mouse_press(mb_left, active)) {
|
||||||
|
builder_bone = _bne;
|
||||||
|
builder_type = _typ;
|
||||||
|
|
||||||
|
recordAction(ACTION_TYPE.struct_modify, bones, bones.serialize());
|
||||||
|
|
||||||
|
if(_typ == 0) {
|
||||||
|
orig = _bne.parent.getHead();
|
||||||
|
builder_sx = orig.x;
|
||||||
|
builder_sy = orig.y;
|
||||||
|
|
||||||
|
} else if(_typ == 1) {
|
||||||
|
orig = _bne.getHead();
|
||||||
|
builder_sx = orig.x;
|
||||||
|
builder_sy = orig.y;
|
||||||
|
|
||||||
|
} else if(_typ == 2) {
|
||||||
|
orig = _bne.getHead();
|
||||||
|
builder_sv = point_direction(orig.x, orig.y, mx, my);
|
||||||
|
builder_sx = orig.x;
|
||||||
|
builder_sy = orig.y;
|
||||||
|
builder_mx = mx;
|
||||||
|
builder_my = my;
|
||||||
|
|
||||||
|
} else if(_typ == 3) {
|
||||||
|
orig = _bne.getHead();
|
||||||
|
builder_sv = point_distance(orig.x, orig.y, mx, my) / _bne.length;
|
||||||
|
builder_sx = orig.x;
|
||||||
|
builder_sy = orig.y;
|
||||||
|
}
|
||||||
|
|
||||||
|
UNDO_HOLDING = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -630,6 +721,7 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
||||||
static postDeserialize = function() {
|
static postDeserialize = function() {
|
||||||
if(struct_has(attributes, "bones")) struct_remove(attributes, "bones");
|
if(struct_has(attributes, "bones")) struct_remove(attributes, "bones");
|
||||||
if(!struct_has(load_map, "bones")) return;
|
if(!struct_has(load_map, "bones")) return;
|
||||||
|
|
||||||
bones = new __Bone(,,,,, self);
|
bones = new __Bone(,,,,, self);
|
||||||
bones.deserialize(load_map.bones, self);
|
bones.deserialize(load_map.bones, self);
|
||||||
bones.connect();
|
bones.connect();
|
||||||
|
|
|
@ -17,12 +17,8 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
||||||
attributes.display_bone = 0;
|
attributes.display_bone = 0;
|
||||||
|
|
||||||
array_push(attributeEditors, "Display");
|
array_push(attributeEditors, "Display");
|
||||||
|
array_push(attributeEditors, ["Display name", function() /*=>*/ {return attributes.display_name}, new checkBox(function() /*=>*/ { attributes.display_name = !attributes.display_name; })]);
|
||||||
array_push(attributeEditors, ["Display name", function() { return attributes.display_name; },
|
array_push(attributeEditors, ["Display bone", function() /*=>*/ {return attributes.display_bone}, new scrollBox(["Octahedral", "Stick"], function(ind) /*=>*/ { attributes.display_bone = ind; })]);
|
||||||
new checkBox(function() { attributes.display_name = !attributes.display_name; })]);
|
|
||||||
|
|
||||||
array_push(attributeEditors, ["Display bone", function() { return attributes.display_bone; },
|
|
||||||
new scrollBox(["Octahedral", "Stick"], function(ind) { attributes.display_bone = ind; })]);
|
|
||||||
|
|
||||||
static createNewInput = function(bone = noone) {
|
static createNewInput = function(bone = noone) {
|
||||||
var index = array_length(inputs);
|
var index = array_length(inputs);
|
||||||
|
@ -32,11 +28,12 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
||||||
inputs[index].attributes.bone_id = bone != noone? bone.ID : noone;
|
inputs[index].attributes.bone_id = bone != noone? bone.ID : noone;
|
||||||
|
|
||||||
if(bone != noone) boneMap[$ bone.ID] = inputs[index];
|
if(bone != noone) boneMap[$ bone.ID] = inputs[index];
|
||||||
|
|
||||||
array_push(input_display_list, index);
|
array_push(input_display_list, index);
|
||||||
|
|
||||||
return inputs[index];
|
return inputs[index];
|
||||||
} setDynamicInput(1, false);
|
}
|
||||||
|
|
||||||
|
setDynamicInput(1, false);
|
||||||
|
|
||||||
static setBone = function() {
|
static setBone = function() {
|
||||||
//print("Setting dem bones...");
|
//print("Setting dem bones...");
|
||||||
|
@ -44,20 +41,19 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
||||||
if(_b == noone) return;
|
if(_b == noone) return;
|
||||||
|
|
||||||
var _bones = [];
|
var _bones = [];
|
||||||
var _bst = ds_stack_create();
|
var _bst = ds_stack_create();
|
||||||
ds_stack_push(_bst, _b);
|
ds_stack_push(_bst, _b);
|
||||||
|
|
||||||
while(!ds_stack_empty(_bst)) {
|
while(!ds_stack_empty(_bst)) {
|
||||||
var __b = ds_stack_pop(_bst);
|
var __b = ds_stack_pop(_bst);
|
||||||
|
|
||||||
for( var i = 0, n = array_length(__b.childs); i < n; i++ ) {
|
for( var i = 0, n = array_length(__b.childs); i < n; i++ ) {
|
||||||
array_push(_bones, __b.childs[i]);
|
array_push(_bones, __b.childs[i]);
|
||||||
ds_stack_push(_bst, __b.childs[i]);
|
ds_stack_push(_bst, __b.childs[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ds_stack_destroy(_bst);
|
ds_stack_destroy(_bst);
|
||||||
//print($"Bone counts: {array_length(_bones)}");
|
|
||||||
|
|
||||||
var _inputs = [ inputs[0] ];
|
var _inputs = [ inputs[0] ];
|
||||||
|
|
||||||
|
@ -69,37 +65,37 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
||||||
for( var i = 0, n = array_length(_bones); i < n; i++ ) {
|
for( var i = 0, n = array_length(_bones); i < n; i++ ) {
|
||||||
var bone = _bones[i];
|
var bone = _bones[i];
|
||||||
var _idx = array_length(_inputs);
|
var _idx = array_length(_inputs);
|
||||||
|
var _inp;
|
||||||
|
|
||||||
array_push(_input_display_list, _idx);
|
array_push(_input_display_list, _idx);
|
||||||
//print($" > Adding bone ID: {bone.ID}");
|
|
||||||
|
|
||||||
if(struct_exists(boneMap, bone.ID)) {
|
if(struct_exists(boneMap, bone.ID)) {
|
||||||
var _inp = boneMap[$ bone.ID];
|
_inp = boneMap[$ bone.ID];
|
||||||
|
|
||||||
_inp.index = _idx;
|
_inp.index = _idx;
|
||||||
array_push(_inputs, _inp);
|
array_push(_inputs, _inp);
|
||||||
} else {
|
|
||||||
var _inp = createNewInput(bone);
|
} else
|
||||||
array_push(_inputs, _inp);
|
_inp = createNewInput(bone);
|
||||||
}
|
|
||||||
|
array_push(_inputs, _inp);
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs = _inputs;
|
inputs = _inputs;
|
||||||
input_display_list = _input_display_list;
|
input_display_list = _input_display_list;
|
||||||
|
|
||||||
//print(_input_display_list);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tools = [];
|
tools = [];
|
||||||
|
|
||||||
anchor_selecting = noone;
|
anchor_selecting = noone;
|
||||||
posing_bone = noone;
|
posing_bone = noone;
|
||||||
posing_input = 0;
|
posing_input = 0;
|
||||||
posing_type = 0;
|
posing_type = 0;
|
||||||
posing_sx = 0;
|
posing_sx = 0;
|
||||||
posing_sy = 0;
|
posing_sy = 0;
|
||||||
posing_sz = 0;
|
posing_sz = 0;
|
||||||
posing_mx = 0;
|
posing_mx = 0;
|
||||||
posing_my = 0;
|
posing_my = 0;
|
||||||
|
|
||||||
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
|
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
|
||||||
var _b = outputs[0].getValue();
|
var _b = outputs[0].getValue();
|
||||||
|
|
BIN
sprites/s_bone_IK/4e6110f8-2b09-4d8c-b6b8-7abbbab4bfbe.png
Normal file
After Width: | Height: | Size: 1,010 B |
Before Width: | Height: | Size: 612 B |
Before Width: | Height: | Size: 875 B |
BIN
sprites/s_bone_IK/ffaa827f-36aa-4c2b-afb6-83e59e91703a.png
Normal file
After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 1,010 B |
Before Width: | Height: | Size: 612 B |
Before Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 688 B |
|
@ -2,25 +2,25 @@
|
||||||
"$GMSprite":"",
|
"$GMSprite":"",
|
||||||
"%Name":"s_bone_IK",
|
"%Name":"s_bone_IK",
|
||||||
"bboxMode":0,
|
"bboxMode":0,
|
||||||
"bbox_bottom":45,
|
"bbox_bottom":44,
|
||||||
"bbox_left":2,
|
"bbox_left":3,
|
||||||
"bbox_right":45,
|
"bbox_right":44,
|
||||||
"bbox_top":2,
|
"bbox_top":3,
|
||||||
"collisionKind":1,
|
"collisionKind":1,
|
||||||
"collisionTolerance":0,
|
"collisionTolerance":0,
|
||||||
"DynamicTexturePage":false,
|
"DynamicTexturePage":false,
|
||||||
"edgeFiltering":false,
|
"edgeFiltering":false,
|
||||||
"For3D":false,
|
"For3D":false,
|
||||||
"frames":[
|
"frames":[
|
||||||
{"$GMSpriteFrame":"","%Name":"ff23c0fb-a981-4cd9-bb33-aa7c9b24473b","name":"ff23c0fb-a981-4cd9-bb33-aa7c9b24473b","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
{"$GMSpriteFrame":"","%Name":"4e6110f8-2b09-4d8c-b6b8-7abbbab4bfbe","name":"4e6110f8-2b09-4d8c-b6b8-7abbbab4bfbe","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||||
{"$GMSpriteFrame":"","%Name":"d0370ade-8599-4155-9318-c2d7f3093323","name":"d0370ade-8599-4155-9318-c2d7f3093323","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
{"$GMSpriteFrame":"","%Name":"ffaa827f-36aa-4c2b-afb6-83e59e91703a","name":"ffaa827f-36aa-4c2b-afb6-83e59e91703a","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||||
],
|
],
|
||||||
"gridX":0,
|
"gridX":0,
|
||||||
"gridY":0,
|
"gridY":0,
|
||||||
"height":48,
|
"height":48,
|
||||||
"HTile":false,
|
"HTile":false,
|
||||||
"layers":[
|
"layers":[
|
||||||
{"$GMImageLayer":"","%Name":"a26b5cff-5172-4a89-b2c8-77679c7b6afb","blendMode":0,"displayName":"default","isLocked":false,"name":"a26b5cff-5172-4a89-b2c8-77679c7b6afb","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
{"$GMImageLayer":"","%Name":"34621c5e-ace8-4be5-ade5-dbaae800d244","blendMode":0,"displayName":"default","isLocked":false,"name":"34621c5e-ace8-4be5-ade5-dbaae800d244","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
||||||
],
|
],
|
||||||
"name":"s_bone_IK",
|
"name":"s_bone_IK",
|
||||||
"nineSlice":null,
|
"nineSlice":null,
|
||||||
|
@ -70,11 +70,11 @@
|
||||||
"tracks":[
|
"tracks":[
|
||||||
{"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore<SpriteFrameKeyframe>":"","Keyframes":[
|
{"$GMSpriteFramesTrack":"","builtinName":0,"events":[],"inheritsTrackColour":true,"interpolation":1,"isCreationTrack":false,"keyframes":{"$KeyframeStore<SpriteFrameKeyframe>":"","Keyframes":[
|
||||||
{"$Keyframe<SpriteFrameKeyframe>":"","Channels":{
|
{"$Keyframe<SpriteFrameKeyframe>":"","Channels":{
|
||||||
"0":{"$SpriteFrameKeyframe":"","Id":{"name":"ff23c0fb-a981-4cd9-bb33-aa7c9b24473b","path":"sprites/s_bone_IK/s_bone_IK.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
"0":{"$SpriteFrameKeyframe":"","Id":{"name":"4e6110f8-2b09-4d8c-b6b8-7abbbab4bfbe","path":"sprites/s_bone_IK/s_bone_IK.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||||
},"Disabled":false,"id":"4a26cb96-661e-4919-a885-99da307f9298","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"2.0","Stretch":false,},
|
},"Disabled":false,"id":"40fd8ce5-4341-46e3-84dc-5f887b50d84f","IsCreationKey":false,"Key":0.0,"Length":1.0,"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"2.0","Stretch":false,},
|
||||||
{"$Keyframe<SpriteFrameKeyframe>":"","Channels":{
|
{"$Keyframe<SpriteFrameKeyframe>":"","Channels":{
|
||||||
"0":{"$SpriteFrameKeyframe":"","Id":{"name":"d0370ade-8599-4155-9318-c2d7f3093323","path":"sprites/s_bone_IK/s_bone_IK.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
"0":{"$SpriteFrameKeyframe":"","Id":{"name":"ffaa827f-36aa-4c2b-afb6-83e59e91703a","path":"sprites/s_bone_IK/s_bone_IK.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||||
},"Disabled":false,"id":"953568eb-430d-4fa1-b0e2-411f290f1941","IsCreationKey":false,"Key":1.0,"Length":1.0,"resourceType":"Keyframe<SpriteFrameKeyframe>","resourceVersion":"2.0","Stretch":false,},
|
},"Disabled":false,"id":"9b37fdc9-9538-4633-97a5-5c83b295881a","IsCreationKey":false,"Key":1.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,},
|
],"resourceType":"KeyframeStore<SpriteFrameKeyframe>","resourceVersion":"2.0",},"modifiers":[],"name":"frames","resourceType":"GMSpriteFramesTrack","resourceVersion":"2.0","spriteId":null,"trackColour":0,"tracks":[],"traits":0,},
|
||||||
],
|
],
|
||||||
"visibleRange":null,
|
"visibleRange":null,
|
||||||
|
|
BIN
sprites/s_bone_move/dcf19df5-bc88-49e5-b187-63ef5eb8cbac.png
Normal file
After Width: | Height: | Size: 1,010 B |
After Width: | Height: | Size: 1,010 B |
90
sprites/s_bone_move/s_bone_move.yy
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
{
|
||||||
|
"$GMSprite":"",
|
||||||
|
"%Name":"s_bone_move",
|
||||||
|
"bboxMode":0,
|
||||||
|
"bbox_bottom":44,
|
||||||
|
"bbox_left":3,
|
||||||
|
"bbox_right":44,
|
||||||
|
"bbox_top":3,
|
||||||
|
"collisionKind":1,
|
||||||
|
"collisionTolerance":0,
|
||||||
|
"DynamicTexturePage":false,
|
||||||
|
"edgeFiltering":false,
|
||||||
|
"For3D":false,
|
||||||
|
"frames":[
|
||||||
|
{"$GMSpriteFrame":"","%Name":"dcf19df5-bc88-49e5-b187-63ef5eb8cbac","name":"dcf19df5-bc88-49e5-b187-63ef5eb8cbac","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||||
|
],
|
||||||
|
"gridX":0,
|
||||||
|
"gridY":0,
|
||||||
|
"height":48,
|
||||||
|
"HTile":false,
|
||||||
|
"layers":[
|
||||||
|
{"$GMImageLayer":"","%Name":"c33d826f-94b9-4422-85c5-d87d8daff32d","blendMode":0,"displayName":"default","isLocked":false,"name":"c33d826f-94b9-4422-85c5-d87d8daff32d","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
||||||
|
],
|
||||||
|
"name":"s_bone_move",
|
||||||
|
"nineSlice":null,
|
||||||
|
"origin":4,
|
||||||
|
"parent":{
|
||||||
|
"name":"preview",
|
||||||
|
"path":"folders/theme/preview.yy",
|
||||||
|
},
|
||||||
|
"preMultiplyAlpha":false,
|
||||||
|
"resourceType":"GMSprite",
|
||||||
|
"resourceVersion":"2.0",
|
||||||
|
"sequence":{
|
||||||
|
"$GMSequence":"",
|
||||||
|
"%Name":"s_bone_move",
|
||||||
|
"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_bone_move",
|
||||||
|
"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":"dcf19df5-bc88-49e5-b187-63ef5eb8cbac","path":"sprites/s_bone_move/s_bone_move.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||||
|
},"Disabled":false,"id":"c409df6f-0be7-45b5-8051-c9647ec21c60","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":24,
|
||||||
|
"yorigin":24,
|
||||||
|
},
|
||||||
|
"swatchColours":null,
|
||||||
|
"swfPrecision":0.5,
|
||||||
|
"textureGroupId":{
|
||||||
|
"name":"Default",
|
||||||
|
"path":"texturegroups/Default",
|
||||||
|
},
|
||||||
|
"type":0,
|
||||||
|
"VTile":false,
|
||||||
|
"width":48,
|
||||||
|
}
|
BIN
sprites/s_bone_rotate/95e7fde5-5a34-4c9b-8721-6163019acda1.png
Normal file
After Width: | Height: | Size: 982 B |
After Width: | Height: | Size: 982 B |
90
sprites/s_bone_rotate/s_bone_rotate.yy
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
{
|
||||||
|
"$GMSprite":"",
|
||||||
|
"%Name":"s_bone_rotate",
|
||||||
|
"bboxMode":0,
|
||||||
|
"bbox_bottom":42,
|
||||||
|
"bbox_left":5,
|
||||||
|
"bbox_right":43,
|
||||||
|
"bbox_top":5,
|
||||||
|
"collisionKind":1,
|
||||||
|
"collisionTolerance":0,
|
||||||
|
"DynamicTexturePage":false,
|
||||||
|
"edgeFiltering":false,
|
||||||
|
"For3D":false,
|
||||||
|
"frames":[
|
||||||
|
{"$GMSpriteFrame":"","%Name":"95e7fde5-5a34-4c9b-8721-6163019acda1","name":"95e7fde5-5a34-4c9b-8721-6163019acda1","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||||
|
],
|
||||||
|
"gridX":0,
|
||||||
|
"gridY":0,
|
||||||
|
"height":48,
|
||||||
|
"HTile":false,
|
||||||
|
"layers":[
|
||||||
|
{"$GMImageLayer":"","%Name":"d24d734b-26ec-44e1-b911-c93e3249c52f","blendMode":0,"displayName":"default","isLocked":false,"name":"d24d734b-26ec-44e1-b911-c93e3249c52f","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
||||||
|
],
|
||||||
|
"name":"s_bone_rotate",
|
||||||
|
"nineSlice":null,
|
||||||
|
"origin":4,
|
||||||
|
"parent":{
|
||||||
|
"name":"preview",
|
||||||
|
"path":"folders/theme/preview.yy",
|
||||||
|
},
|
||||||
|
"preMultiplyAlpha":false,
|
||||||
|
"resourceType":"GMSprite",
|
||||||
|
"resourceVersion":"2.0",
|
||||||
|
"sequence":{
|
||||||
|
"$GMSequence":"",
|
||||||
|
"%Name":"s_bone_rotate",
|
||||||
|
"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_bone_rotate",
|
||||||
|
"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":"95e7fde5-5a34-4c9b-8721-6163019acda1","path":"sprites/s_bone_rotate/s_bone_rotate.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||||
|
},"Disabled":false,"id":"eb2e1caf-04ab-494d-8e36-de9e961448b2","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":24,
|
||||||
|
"yorigin":24,
|
||||||
|
},
|
||||||
|
"swatchColours":null,
|
||||||
|
"swfPrecision":0.5,
|
||||||
|
"textureGroupId":{
|
||||||
|
"name":"Default",
|
||||||
|
"path":"texturegroups/Default",
|
||||||
|
},
|
||||||
|
"type":0,
|
||||||
|
"VTile":false,
|
||||||
|
"width":48,
|
||||||
|
}
|
BIN
sprites/s_bone_scale/2de46b2b-d64b-4497-a785-81906d872c31.png
Normal file
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 532 B |
90
sprites/s_bone_scale/s_bone_scale.yy
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
{
|
||||||
|
"$GMSprite":"",
|
||||||
|
"%Name":"s_bone_scale",
|
||||||
|
"bboxMode":0,
|
||||||
|
"bbox_bottom":32,
|
||||||
|
"bbox_left":8,
|
||||||
|
"bbox_right":42,
|
||||||
|
"bbox_top":15,
|
||||||
|
"collisionKind":1,
|
||||||
|
"collisionTolerance":0,
|
||||||
|
"DynamicTexturePage":false,
|
||||||
|
"edgeFiltering":false,
|
||||||
|
"For3D":false,
|
||||||
|
"frames":[
|
||||||
|
{"$GMSpriteFrame":"","%Name":"2de46b2b-d64b-4497-a785-81906d872c31","name":"2de46b2b-d64b-4497-a785-81906d872c31","resourceType":"GMSpriteFrame","resourceVersion":"2.0",},
|
||||||
|
],
|
||||||
|
"gridX":0,
|
||||||
|
"gridY":0,
|
||||||
|
"height":48,
|
||||||
|
"HTile":false,
|
||||||
|
"layers":[
|
||||||
|
{"$GMImageLayer":"","%Name":"dfa57967-60b1-4c24-ae6c-4f613947bdcd","blendMode":0,"displayName":"default","isLocked":false,"name":"dfa57967-60b1-4c24-ae6c-4f613947bdcd","opacity":100.0,"resourceType":"GMImageLayer","resourceVersion":"2.0","visible":true,},
|
||||||
|
],
|
||||||
|
"name":"s_bone_scale",
|
||||||
|
"nineSlice":null,
|
||||||
|
"origin":4,
|
||||||
|
"parent":{
|
||||||
|
"name":"preview",
|
||||||
|
"path":"folders/theme/preview.yy",
|
||||||
|
},
|
||||||
|
"preMultiplyAlpha":false,
|
||||||
|
"resourceType":"GMSprite",
|
||||||
|
"resourceVersion":"2.0",
|
||||||
|
"sequence":{
|
||||||
|
"$GMSequence":"",
|
||||||
|
"%Name":"s_bone_scale",
|
||||||
|
"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_bone_scale",
|
||||||
|
"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":"2de46b2b-d64b-4497-a785-81906d872c31","path":"sprites/s_bone_scale/s_bone_scale.yy",},"resourceType":"SpriteFrameKeyframe","resourceVersion":"2.0",},
|
||||||
|
},"Disabled":false,"id":"47cbaea7-265a-4656-960f-a01215b92edc","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":24,
|
||||||
|
"yorigin":24,
|
||||||
|
},
|
||||||
|
"swatchColours":null,
|
||||||
|
"swfPrecision":0.5,
|
||||||
|
"textureGroupId":{
|
||||||
|
"name":"Default",
|
||||||
|
"path":"texturegroups/Default",
|
||||||
|
},
|
||||||
|
"type":0,
|
||||||
|
"VTile":false,
|
||||||
|
"width":48,
|
||||||
|
}
|