@urso/core 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
|
|
|
18
18
|
this.animation = {
|
|
19
19
|
timeScale: Urso.helper.recursiveGet('animation.timeScale', params, 1),
|
|
20
20
|
name: Urso.helper.recursiveGet('animation.name', params, false),
|
|
21
|
+
skinName: Urso.helper.recursiveGet('animation.skinName', params, false),
|
|
21
22
|
loop: Urso.helper.recursiveGet('animation.loop', params, false),
|
|
22
23
|
onComplete: Urso.helper.recursiveGet('animation.onComplete', params, false)
|
|
23
24
|
};
|
|
@@ -256,6 +257,9 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
|
|
|
256
257
|
if (this.animation.onComplete)
|
|
257
258
|
this._baseObject.state.addListener({ complete: this.animation.onComplete });
|
|
258
259
|
|
|
260
|
+
if (this.animation.skinName)
|
|
261
|
+
this.setSkinByName(this.animation.skinName);
|
|
262
|
+
|
|
259
263
|
if (this.animation.name)
|
|
260
264
|
this.play(this.animation.name, this.animation.loop);
|
|
261
265
|
|