mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13485 from VisualSJ/v3.8-webIndex
Update Studio js parser
This commit is contained in:
commit
a54f01ce2b
|
@ -268,6 +268,7 @@
|
||||||
var blendFunc = options["BlendFunc"];
|
var blendFunc = options["BlendFunc"];
|
||||||
if(blendFunc)
|
if(blendFunc)
|
||||||
frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
|
frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"]));
|
||||||
|
return frame;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -1312,12 +1312,18 @@
|
||||||
node.setBlendFunc(new cc.BlendFunc(blendFunc["Src"] || 0, blendFunc["Dst"] || 0));
|
node.setBlendFunc(new cc.BlendFunc(blendFunc["Src"] || 0, blendFunc["Dst"] || 0));
|
||||||
|
|
||||||
parser.generalAttributes(node, json);
|
parser.generalAttributes(node, json);
|
||||||
|
var color = json["CColor"];
|
||||||
|
if(color && (color["R"] !== undefined || color["G"] !== undefined || color["B"] !== undefined))
|
||||||
|
node.setColor(getColor(color));
|
||||||
return node;
|
return node;
|
||||||
};
|
};
|
||||||
|
|
||||||
parser.initSkeletonNode = function(json){
|
parser.initSkeletonNode = function(json){
|
||||||
var node = new ccs.SkeletonNode();
|
var node = new ccs.SkeletonNode();
|
||||||
parser.generalAttributes(node, json);
|
parser.generalAttributes(node, json);
|
||||||
|
var color = json["CColor"];
|
||||||
|
if(color && (color["R"] !== undefined || color["G"] !== undefined || color["B"] !== undefined))
|
||||||
|
node.setColor(getColor(color));
|
||||||
return node;
|
return node;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue