We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f22114 commit 1da37afCopy full SHA for 1da37af
frameworks/js-bindings/bindings/script/studio/parsers/action-2.x.js
@@ -59,6 +59,21 @@
59
cache[file] = action;
60
cache[file].retain();
61
return action.clone();
62
+ },
63
+
64
+ deferred: function(json, resourcePath, action, file){
65
+ if(cc.sys.isNative){
66
+ var animationlist = json["Content"]["Content"]["AnimationList"];
67
+ var length = animationlist ? animationlist.length : 0;
68
+ for (var i = 0; i < length; i++){
69
+ var animationdata = animationlist[i];
70
+ var info = { name: null, startIndex: null, endIndex: null };
71
+ info.name = animationdata["Name"];
72
+ info.startIndex = animationdata["StartIndex"];
73
+ info.endIndex = animationdata["EndIndex"];
74
+ action.addAnimationInfo(info);
75
+ }
76
77
}
78
79
});
0 commit comments