mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
New plugin build
This commit is contained in:
parent
7b96356cfc
commit
91c58c5ef6
2 changed files with 75 additions and 2 deletions
75
plugins/spine/dist/SpinePlugin.js
vendored
75
plugins/spine/dist/SpinePlugin.js
vendored
|
@ -10921,6 +10921,37 @@ var SpineGameObject = new Class({
|
|||
return output;
|
||||
},
|
||||
|
||||
getSkinList: function ()
|
||||
{
|
||||
var output = [];
|
||||
|
||||
var skeletonData = this.skeletonData;
|
||||
|
||||
if (skeletonData)
|
||||
{
|
||||
for (var i = 0; i < skeletonData.skins.length; i++)
|
||||
{
|
||||
output.push(skeletonData.skins[i].name);
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
},
|
||||
|
||||
getSlotList: function ()
|
||||
{
|
||||
var output = [];
|
||||
|
||||
var skeleton = this.skeleton;
|
||||
|
||||
for (var i = 0; i < skeleton.slots.length; i++)
|
||||
{
|
||||
output.push(skeleton.slots[i].data.name);
|
||||
}
|
||||
|
||||
return output;
|
||||
},
|
||||
|
||||
getAnimationList: function ()
|
||||
{
|
||||
var output = [];
|
||||
|
@ -10986,7 +11017,13 @@ var SpineGameObject = new Class({
|
|||
|
||||
setSkinByName: function (skinName)
|
||||
{
|
||||
this.skeleton.setSkinByName(skinName);
|
||||
var skeleton = this.skeleton;
|
||||
|
||||
skeleton.setSkinByName(skinName);
|
||||
|
||||
skeleton.setSlotsToSetupPose();
|
||||
|
||||
this.state.apply(skeleton);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
@ -11011,6 +11048,42 @@ var SpineGameObject = new Class({
|
|||
return this;
|
||||
},
|
||||
|
||||
getAttachment: function (slotIndex, attachmentName)
|
||||
{
|
||||
return this.skeleton.getAttachment(slotIndex, attachmentName);
|
||||
},
|
||||
|
||||
getAttachmentByName: function (slotName, attachmentName)
|
||||
{
|
||||
return this.skeleton.getAttachmentByName(slotName, attachmentName);
|
||||
},
|
||||
|
||||
setAttachment: function (slotName, attachmentName)
|
||||
{
|
||||
return this.skeleton.setAttachment(slotName, attachmentName);
|
||||
},
|
||||
|
||||
setToSetupPose: function ()
|
||||
{
|
||||
this.skeleton.setToSetupPose();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
setSlotsToSetupPose: function ()
|
||||
{
|
||||
this.skeleton.setSlotsToSetupPose();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
setBonesToSetupPose: function ()
|
||||
{
|
||||
this.skeleton.setBonesToSetupPose();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
getRootBone: function ()
|
||||
{
|
||||
return this.skeleton.getRootBone();
|
||||
|
|
2
plugins/spine/dist/SpinePlugin.js.map
vendored
2
plugins/spine/dist/SpinePlugin.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue