Skip to content

Commit 2bee1e4

Browse files
committed
Add followSlot method
1 parent 6976e4c commit 2bee1e4

File tree

8 files changed

+1059
-14
lines changed

8 files changed

+1059
-14
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
button.png
2+
size:372,510
3+
filter:Linear,Linear
4+
Button
5+
bounds:220,2,400,150
6+
offsets:1,1,402,152
7+
rotate:90
8+
CLICK ME
9+
bounds:2,470,231,38
10+
offsets:1,1,233,40
11+
Shadow
12+
bounds:2,2,466,216
13+
offsets:9,9,484,234
14+
rotate:90
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"skeleton": {
3+
"hash": "yil4eBV+4V0",
4+
"spine": "4.2.38",
5+
"x": -241,
6+
"y": -139,
7+
"width": 484,
8+
"height": 234,
9+
"images": "./images/",
10+
"audio": "./audio"
11+
},
12+
"bones": [
13+
{ "name": "root" },
14+
{ "name": "button-small", "parent": "root" },
15+
{ "name": "button-big", "parent": "button-small" },
16+
{ "name": "follower", "parent": "button-small", "rotation": 45, "x": 100, "y": 200 }
17+
],
18+
"slots": [
19+
{ "name": "Shadow", "bone": "button-small", "attachment": "Shadow" },
20+
{ "name": "button-big", "bone": "button-big", "attachment": "Button" },
21+
{ "name": "button-small", "bone": "button-small", "attachment": "Button" },
22+
{ "name": "CLICK ME", "bone": "button-small", "attachment": "CLICK ME" },
23+
{ "name": "follower", "bone": "follower" }
24+
],
25+
"skins": [
26+
{
27+
"name": "default",
28+
"attachments": {
29+
"button-big": {
30+
"Button": { "width": 402, "height": 152 }
31+
},
32+
"button-small": {
33+
"Button": { "width": 402, "height": 152 }
34+
},
35+
"CLICK ME": {
36+
"CLICK ME": { "x": 0.5, "y": -1, "width": 233, "height": 40 }
37+
},
38+
"Shadow": {
39+
"Shadow": { "x": 1, "y": -22, "width": 484, "height": 234 }
40+
}
41+
}
42+
}
43+
],
44+
"animations": {
45+
"enhance-in": {
46+
"slots": {
47+
"button-big": {
48+
"rgba": [
49+
{ "color": "ffffffff" },
50+
{ "time": 0.3333, "color": "ffffff00" }
51+
]
52+
}
53+
},
54+
"bones": {
55+
"button-big": {
56+
"scale": [
57+
{},
58+
{ "time": 0.3333, "x": 1.5, "y": 1.5 }
59+
]
60+
}
61+
}
62+
},
63+
"enhance-out": {
64+
"slots": {
65+
"button-big": {
66+
"rgba": [
67+
{ "color": "ffffff00" },
68+
{ "time": 0.3333, "color": "ffffffff" }
69+
]
70+
}
71+
},
72+
"bones": {
73+
"button-big": {
74+
"scale": [
75+
{ "x": 1.5, "y": 1.5 },
76+
{ "time": 0.3333 }
77+
]
78+
}
79+
}
80+
},
81+
"idle": {
82+
"slots": {
83+
"button-big": {
84+
"attachment": [
85+
{}
86+
]
87+
},
88+
"Shadow": {
89+
"attachment": [
90+
{}
91+
]
92+
}
93+
}
94+
},
95+
"jump": {
96+
"bones": {
97+
"button-small": {
98+
"translate": [
99+
{
100+
"curve": [ 0.078, 0, 0.156, 0, 0.078, 0, 0.156, 10 ]
101+
},
102+
{
103+
"time": 0.2333,
104+
"y": 10,
105+
"curve": [ 0.311, 0, 0.389, 0, 0.311, 10, 0.389, 0 ]
106+
},
107+
{ "time": 0.4667 }
108+
]
109+
}
110+
}
111+
},
112+
"shadow-in": {
113+
"slots": {
114+
"Shadow": {
115+
"rgba": [
116+
{ "color": "ffffff00" },
117+
{ "time": 0.3333, "color": "ffffffff" }
118+
],
119+
"attachment": [
120+
{ "name": "Shadow" }
121+
]
122+
}
123+
}
124+
},
125+
"shadow-out": {
126+
"slots": {
127+
"Shadow": {
128+
"rgba": [
129+
{ "color": "ffffffff" },
130+
{ "time": 0.3333, "color": "ffffff00" }
131+
],
132+
"attachment": [
133+
{ "name": "Shadow" }
134+
]
135+
}
136+
}
137+
}
138+
}
139+
}
14.1 KB
Loading

0 commit comments

Comments
 (0)