[c][cpp] Ported addition of x/y bounding coordinates to SkeletonData. See #1325.

This commit is contained in:
badlogic 2019-04-16 14:06:41 +02:00
parent 9531cb0b7d
commit c68d85a1fc
158 changed files with 992 additions and 393 deletions

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "ZepBeeRC5VLq8YeyRLxZXiseZ2Y", "spine": "3.7.90", "width": 365.79, "height": 391.51, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "ZepBeeRC5VLq8YeyRLxZXiseZ2Y",
"spine": "3.8.05-beta",
"x": -191.3,
"y": -4.51,
"width": 365.79,
"height": 391.51,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": -8.17, "y": 73.5, "color": "fff200ff" },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "7w4ASoCY48RDSQRWA6Sh805WiPo", "spine": "3.7.90", "width": 368.26, "height": 384.69, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "7w4ASoCY48RDSQRWA6Sh805WiPo",
"spine": "3.8.05-beta",
"x": -191.3,
"y": -4.51,
"width": 368.26,
"height": 384.69,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": -8.17, "y": 73.5, "color": "fff200ff" },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "MYibQXspGhD4XDqbsmKCI3XfquU", "spine": "3.7.90", "width": 305, "height": 302, "images": "./images/", "audio": "C:/Program Files (x86)/Spine/examples/coin-new" },
"skeleton": {
"hash": "MYibQXspGhD4XDqbsmKCI3XfquU",
"spine": "3.8.05-beta",
"x": -152.5,
"y": -151,
"width": 305,
"height": 302,
"images": "./images/",
"audio": "C:/Program Files (x86)/Spine/examples/coin-new"
},
"bones": [
{ "name": "root" },
{ "name": "coin-front", "parent": "root" },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "lv0LmUZo/75fufw/LnAEx8+6j2Y", "spine": "3.7.90", "width": 660.39, "height": 604.09, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "lv0LmUZo/75fufw/LnAEx8+6j2Y",
"spine": "3.8.05-beta",
"x": -366.31,
"y": -286.62,
"width": 660.39,
"height": 604.09,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "y": -176.12 },
{ "name": "center", "parent": "root", "y": 176.12, "color": "ffe300ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "2ZytXk25WMQh7xfYd6gBJKXviEA", "spine": "3.7.90", "width": 234.03, "height": 354.91, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "2ZytXk25WMQh7xfYd6gBJKXviEA",
"spine": "3.8.05-beta",
"x": -92.53,
"y": -5.3,
"width": 234.03,
"height": 354.91,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffd300ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "jRu/wouxVU8tTdQwXc4jZzNY4RE", "spine": "3.7.90", "width": 319.3, "height": 337, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "jRu/wouxVU8tTdQwXc4jZzNY4RE",
"spine": "3.8.05-beta",
"x": -87.83,
"y": -0.03,
"width": 319.3,
"height": 337,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "y": 94.89 },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "k0XfaXcR65L+gkogkxzhOWL/mtc", "spine": "3.7.90", "width": 318.76, "height": 333.69, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "k0XfaXcR65L+gkogkxzhOWL/mtc",
"spine": "3.8.05-beta",
"x": -87.3,
"y": -0.03,
"width": 318.76,
"height": 333.69,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "y": 94.89 },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "86VKhCYhPLW0kkchYu/V/i1UKK8", "spine": "3.7.90", "width": 1350.84, "height": 909.41, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "86VKhCYhPLW0kkchYu/V/i1UKK8",
"spine": "3.8.05-beta",
"x": -644,
"y": -274,
"width": 1350.84,
"height": 909.41,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "VkGIE6Vi5G7QHYZfaGNNFIUZbQ4", "spine": "3.7.90", "width": 413.19, "height": 195.71, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "VkGIE6Vi5G7QHYZfaGNNFIUZbQ4",
"spine": "3.8.05-beta",
"x": -207.3,
"y": 119.41,
"width": 413.19,
"height": 195.71,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "powerup", "parent": "root", "x": 1.48, "y": 134.02 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "Wl1sVJl86N1At8S6pj+IzFFUmFg", "spine": "3.7.90", "width": 414.65, "height": 195.19, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "Wl1sVJl86N1At8S6pj+IzFFUmFg",
"spine": "3.8.05-beta",
"x": -208.76,
"y": 119.41,
"width": 414.65,
"height": 195.19,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "powerup", "parent": "root", "x": 1.48, "y": 134.02 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "F1nJIC+629T0h/lp+E1rfrXFM1k", "spine": "3.7.90", "width": 196.03, "height": 305.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "F1nJIC+629T0h/lp+E1rfrXFM1k",
"spine": "3.8.05-beta",
"x": -95.43,
"y": -18.79,
"width": 196.03,
"height": 305.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": -0.03, "y": 51.91 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI", "spine": "3.7.90", "width": 470.72, "height": 731.57, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI",
"spine": "3.8.05-beta",
"x": -221.27,
"y": -8.57,
"width": 470.72,
"height": 731.57,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "y": 247.47 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8", "spine": "3.7.90", "width": 419.84, "height": 686.08, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8",
"spine": "3.8.05-beta",
"x": -190.66,
"y": -8,
"width": 419.84,
"height": 686.08,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "rotation": 0.28 },
{ "name": "hip", "parent": "root", "y": 247.27 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "B2ZPp7lIxBrN+g+ALWuTw4IWKYE", "spine": "3.7.90", "width": 1680, "height": 1782.28, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "B2ZPp7lIxBrN+g+ALWuTw4IWKYE",
"spine": "3.8.05-beta",
"x": -840,
"y": -766.03,
"width": 1680,
"height": 1782.28,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "y": -526.32 },
{ "name": "leaves", "parent": "root", "x": -0.17, "y": 1310.1 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "z8H9R54u1auVyWlNHuov1bIMUiQ", "spine": "3.7.90", "width": 264.5, "height": 573.31, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "z8H9R54u1auVyWlNHuov1bIMUiQ",
"spine": "3.8.05-beta",
"x": -104.34,
"y": -9.21,
"width": 264.5,
"height": 573.31,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "xJkHvxwbe4TALf6AhnPgogry+kM", "spine": "3.7.90", "width": 264.51, "height": 573.32, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "xJkHvxwbe4TALf6AhnPgogry+kM",
"spine": "3.8.05-beta",
"x": -104.36,
"y": -9.22,
"width": 264.51,
"height": 573.32,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "CNGmfU5lE4sb2RjvjcTWfY136TI", "spine": "3.7.90", "width": 7202.61, "height": 1298.88, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "CNGmfU5lE4sb2RjvjcTWfY136TI",
"spine": "3.8.05-beta",
"x": -5852.65,
"y": -348.5,
"width": 7202.61,
"height": 1298.88,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "tank-root", "parent": "root", "y": 146.79 },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "g2ibRT2BLV7muTtFjrutYxIjnLA", "spine": "3.7.90", "width": 227.65, "height": 841.09, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "g2ibRT2BLV7muTtFjrutYxIjnLA",
"spine": "3.8.05-beta",
"x": -87.7,
"y": -1.71,
"width": 227.65,
"height": 841.09,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "NfUyaLKZcMcplfcXobQkQZlkH0s", "spine": "3.7.90", "width": 1124.2, "height": 1043.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "NfUyaLKZcMcplfcXobQkQZlkH0s",
"spine": "3.8.05-beta",
"x": -564.6,
"y": -335.4,
"width": 1124.2,
"height": 1043.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI", "spine": "3.7.90", "width": 470.72, "height": 731.57, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI",
"spine": "3.8.05-beta",
"x": -221.27,
"y": -8.57,
"width": 470.72,
"height": 731.57,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "y": 247.47 },

View File

@ -48,7 +48,7 @@ extern "C" {
typedef struct spSkeletonData {
const char* version;
const char* hash;
float width, height;
float x, y, width, height;
int bonesCount;
spBoneData** bones;

View File

@ -880,6 +880,8 @@ spSkeletonData* spSkeletonBinary_readSkeletonData (spSkeletonBinary* self, const
skeletonData->version = 0;
}
skeletonData->x = readFloat(input);
skeletonData->y = readFloat(input);
skeletonData->width = readFloat(input);
skeletonData->height = readFloat(input);

View File

@ -602,6 +602,8 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
if (skeleton) {
MALLOC_STR(skeletonData->hash, Json_getString(skeleton, "hash", 0));
MALLOC_STR(skeletonData->version, Json_getString(skeleton, "spine", 0));
skeletonData->x = Json_getFloat(skeleton, "x", 0);
skeletonData->y = Json_getFloat(skeleton, "y", 0);
skeletonData->width = Json_getFloat(skeleton, "width", 0);
skeletonData->height = Json_getFloat(skeleton, "height", 0);
}

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "MYibQXspGhD4XDqbsmKCI3XfquU", "spine": "3.7.90", "width": 305, "height": 302, "images": "./images/", "audio": "C:/Program Files (x86)/Spine/examples/coin-new" },
"skeleton": {
"hash": "MYibQXspGhD4XDqbsmKCI3XfquU",
"spine": "3.8.05-beta",
"x": -152.5,
"y": -151,
"width": 305,
"height": 302,
"images": "./images/",
"audio": "C:/Program Files (x86)/Spine/examples/coin-new"
},
"bones": [
{ "name": "root" },
{ "name": "coin-front", "parent": "root" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI", "spine": "3.7.90", "width": 470.72, "height": 731.57, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI",
"spine": "3.8.05-beta",
"x": -221.27,
"y": -8.57,
"width": 470.72,
"height": 731.57,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "y": 247.47 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "CNGmfU5lE4sb2RjvjcTWfY136TI", "spine": "3.7.90", "width": 7202.61, "height": 1298.88, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "CNGmfU5lE4sb2RjvjcTWfY136TI",
"spine": "3.8.05-beta",
"x": -5852.65,
"y": -348.5,
"width": 7202.61,
"height": 1298.88,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "tank-root", "parent": "root", "y": 146.79 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8", "spine": "3.7.90", "width": 419.84, "height": 686.08, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8",
"spine": "3.8.05-beta",
"x": -190.66,
"y": -8,
"width": 419.84,
"height": 686.08,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "rotation": 0.28 },
{ "name": "hip", "parent": "root", "y": 247.27 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "MYibQXspGhD4XDqbsmKCI3XfquU", "spine": "3.7.90", "width": 305, "height": 302, "images": "./images/", "audio": "C:/Program Files (x86)/Spine/examples/coin-new" },
"skeleton": {
"hash": "MYibQXspGhD4XDqbsmKCI3XfquU",
"spine": "3.8.05-beta",
"x": -152.5,
"y": -151,
"width": 305,
"height": 302,
"images": "./images/",
"audio": "C:/Program Files (x86)/Spine/examples/coin-new"
},
"bones": [
{ "name": "root" },
{ "name": "coin-front", "parent": "root" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "86VKhCYhPLW0kkchYu/V/i1UKK8", "spine": "3.7.90", "width": 1350.84, "height": 909.41, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "86VKhCYhPLW0kkchYu/V/i1UKK8",
"spine": "3.8.05-beta",
"x": -644,
"y": -274,
"width": 1350.84,
"height": 909.41,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8", "spine": "3.7.90", "width": 419.84, "height": 686.08, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8",
"spine": "3.8.05-beta",
"x": -190.66,
"y": -8,
"width": 419.84,
"height": 686.08,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "rotation": 0.28 },
{ "name": "hip", "parent": "root", "y": 247.27 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "z8H9R54u1auVyWlNHuov1bIMUiQ", "spine": "3.7.90", "width": 264.5, "height": 573.31, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "z8H9R54u1auVyWlNHuov1bIMUiQ",
"spine": "3.8.05-beta",
"x": -104.34,
"y": -9.21,
"width": 264.5,
"height": 573.31,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "xJkHvxwbe4TALf6AhnPgogry+kM", "spine": "3.7.90", "width": 264.51, "height": 573.32, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "xJkHvxwbe4TALf6AhnPgogry+kM",
"spine": "3.8.05-beta",
"x": -104.36,
"y": -9.22,
"width": 264.51,
"height": 573.32,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "CNGmfU5lE4sb2RjvjcTWfY136TI", "spine": "3.7.90", "width": 7202.61, "height": 1298.88, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "CNGmfU5lE4sb2RjvjcTWfY136TI",
"spine": "3.8.05-beta",
"x": -5852.65,
"y": -348.5,
"width": 7202.61,
"height": 1298.88,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "tank-root", "parent": "root", "y": 146.79 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "g2ibRT2BLV7muTtFjrutYxIjnLA", "spine": "3.7.90", "width": 227.65, "height": 841.09, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "g2ibRT2BLV7muTtFjrutYxIjnLA",
"spine": "3.8.05-beta",
"x": -87.7,
"y": -1.71,
"width": 227.65,
"height": 841.09,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

View File

@ -170,7 +170,7 @@ private:
Vector<IkConstraintData *> _ikConstraints;
Vector<TransformConstraintData *> _transformConstraints;
Vector<PathConstraintData *> _pathConstraints;
float _width, _height;
float _x, _y, _width, _height;
String _version;
String _hash;

View File

@ -131,6 +131,8 @@ SkeletonData *SkeletonBinary::readSkeletonData(const unsigned char *binary, cons
char *skeletonData_version = readString(input);
skeletonData->_version.own(skeletonData_version);
skeletonData->_x = readFloat(input);
skeletonData->_y = readFloat(input);
skeletonData->_width = readFloat(input);
skeletonData->_height = readFloat(input);

View File

@ -50,6 +50,8 @@ using namespace spine;
SkeletonData::SkeletonData() :
_name(),
_defaultSkin(NULL),
_x(0),
_y(0),
_width(0),
_height(0),
_version(),

View File

@ -135,6 +135,8 @@ SkeletonData *SkeletonJson::readSkeletonData(const char *json) {
if (skeleton) {
skeletonData->_hash = Json::getString(skeleton, "hash", 0);
skeletonData->_version = Json::getString(skeleton, "spine", 0);
skeletonData->_x = Json::getFloat(skeleton, "x", 0);
skeletonData->_y = Json::getFloat(skeleton, "y", 0);
skeletonData->_width = Json::getFloat(skeleton, "width", 0);
skeletonData->_height = Json::getFloat(skeleton, "height", 0);
skeletonData->_fps = Json::getFloat(skeleton, "fps", 30);

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "MYibQXspGhD4XDqbsmKCI3XfquU", "spine": "3.7.90", "width": 305, "height": 302, "images": "./images/", "audio": "C:/Program Files (x86)/Spine/examples/coin-new" },
"skeleton": {
"hash": "MYibQXspGhD4XDqbsmKCI3XfquU",
"spine": "3.8.05-beta",
"x": -152.5,
"y": -151,
"width": 305,
"height": 302,
"images": "./images/",
"audio": "C:/Program Files (x86)/Spine/examples/coin-new"
},
"bones": [
{ "name": "root" },
{ "name": "coin-front", "parent": "root" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "2ZytXk25WMQh7xfYd6gBJKXviEA", "spine": "3.7.90", "width": 234.03, "height": 354.91, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "2ZytXk25WMQh7xfYd6gBJKXviEA",
"spine": "3.8.05-beta",
"x": -92.53,
"y": -5.3,
"width": 234.03,
"height": 354.91,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffd300ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI", "spine": "3.7.90", "width": 470.72, "height": 731.57, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "rT7lqFEux8ByWJu8ww2iFIvaLnI",
"spine": "3.8.05-beta",
"x": -221.27,
"y": -8.57,
"width": 470.72,
"height": 731.57,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "y": 247.47 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8", "spine": "3.7.90", "width": 419.84, "height": 686.08, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8",
"spine": "3.8.05-beta",
"x": -190.66,
"y": -8,
"width": 419.84,
"height": 686.08,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "rotation": 0.28 },
{ "name": "hip", "parent": "root", "y": 247.27 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "MYibQXspGhD4XDqbsmKCI3XfquU", "spine": "3.7.90", "width": 305, "height": 302, "images": "./images/", "audio": "C:/Program Files (x86)/Spine/examples/coin-new" },
"skeleton": {
"hash": "MYibQXspGhD4XDqbsmKCI3XfquU",
"spine": "3.8.05-beta",
"x": -152.5,
"y": -151,
"width": 305,
"height": 302,
"images": "./images/",
"audio": "C:/Program Files (x86)/Spine/examples/coin-new"
},
"bones": [
{ "name": "root" },
{ "name": "coin-front", "parent": "root" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8", "spine": "3.7.90", "width": 419.84, "height": 686.08, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8",
"spine": "3.8.05-beta",
"x": -190.66,
"y": -8,
"width": 419.84,
"height": 686.08,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "rotation": 0.28 },
{ "name": "hip", "parent": "root", "y": 247.27 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "z8H9R54u1auVyWlNHuov1bIMUiQ", "spine": "3.7.90", "width": 264.5, "height": 573.31, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "z8H9R54u1auVyWlNHuov1bIMUiQ",
"spine": "3.8.05-beta",
"x": -104.34,
"y": -9.21,
"width": 264.5,
"height": 573.31,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "xJkHvxwbe4TALf6AhnPgogry+kM", "spine": "3.7.90", "width": 264.51, "height": 573.32, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "xJkHvxwbe4TALf6AhnPgogry+kM",
"spine": "3.8.05-beta",
"x": -104.36,
"y": -9.22,
"width": 264.51,
"height": 573.32,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "CNGmfU5lE4sb2RjvjcTWfY136TI", "spine": "3.7.90", "width": 7202.61, "height": 1298.88, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "CNGmfU5lE4sb2RjvjcTWfY136TI",
"spine": "3.8.05-beta",
"x": -5852.65,
"y": -348.5,
"width": 7202.61,
"height": 1298.88,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "tank-root", "parent": "root", "y": 146.79 },

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "g2ibRT2BLV7muTtFjrutYxIjnLA", "spine": "3.7.90", "width": 227.65, "height": 841.09, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "g2ibRT2BLV7muTtFjrutYxIjnLA",
"spine": "3.8.05-beta",
"x": -87.7,
"y": -1.71,
"width": 227.65,
"height": 841.09,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "MYibQXspGhD4XDqbsmKCI3XfquU", "spine": "3.7.90", "width": 305, "height": 302, "images": "./images/", "audio": "C:/Program Files (x86)/Spine/examples/coin-new" },
"skeleton": {
"hash": "MYibQXspGhD4XDqbsmKCI3XfquU",
"spine": "3.8.05-beta",
"x": -152.5,
"y": -151,
"width": 305,
"height": 302,
"images": "./images/",
"audio": "C:/Program Files (x86)/Spine/examples/coin-new"
},
"bones": [
{ "name": "root" },
{ "name": "coin-front", "parent": "root" },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "GEt0/K+46aqD75ngNEZOztV899k", "spine": "3.7.90", "width": 266.94, "height": 349.61, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "GEt0/K+46aqD75ngNEZOztV899k",
"spine": "3.8.05-beta",
"x": -134.12,
"y": -3.28,
"width": 266.94,
"height": 349.61,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "x": 0.65, "y": 114.41, "color": "ffcf00ff" },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "86VKhCYhPLW0kkchYu/V/i1UKK8", "spine": "3.7.90", "width": 1350.84, "height": 909.41, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "86VKhCYhPLW0kkchYu/V/i1UKK8",
"spine": "3.8.05-beta",
"x": -644,
"y": -274,
"width": 1350.84,
"height": 909.41,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "UXiXf0kD0B1rQL7u4X14XG9GABA", "spine": "3.7.90", "width": 1280.26, "height": 1039.44, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "UXiXf0kD0B1rQL7u4X14XG9GABA",
"spine": "3.8.05-beta",
"x": -809.16,
"y": -73.54,
"width": 1280.26,
"height": 1039.44,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "hip", "parent": "root", "rotation": 8.96, "x": -122.52, "y": 392.65, "color": "fbff00ff" },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8", "spine": "3.7.90", "width": 419.84, "height": 686.08, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "PAYbOkc7GRcWIZQTjcDV7U+dhD8",
"spine": "3.8.05-beta",
"x": -190.66,
"y": -8,
"width": 419.84,
"height": 686.08,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root", "rotation": 0.28 },
{ "name": "hip", "parent": "root", "y": 247.27 },

Binary file not shown.

View File

@ -1,5 +1,14 @@
{
"skeleton": { "hash": "z8H9R54u1auVyWlNHuov1bIMUiQ", "spine": "3.7.90", "width": 264.5, "height": 573.31, "images": "./images/", "audio": "" },
"skeleton": {
"hash": "z8H9R54u1auVyWlNHuov1bIMUiQ",
"spine": "3.8.05-beta",
"x": -104.34,
"y": -9.21,
"width": 264.5,
"height": 573.31,
"images": "./images/",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "back-arm-ik-target", "parent": "root", "x": 103.52, "y": 345.27, "color": "ff3f00ff" },

Some files were not shown because too many files have changed in this diff Show More