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.
2 parents 252109c + 7bf9074 commit e25c9eeCopy full SHA for e25c9ee
cocos2d/actions/CCActionInstant.js
@@ -660,7 +660,7 @@ cc.CallFunc = cc.ActionInstant.extend(/** @lends cc.CallFunc# */{
660
if (selectorTarget) {
661
this._selectorTarget = selectorTarget;
662
}
663
- if (data) {
+ if (data !== undefined) {
664
this._data = data;
665
666
return true;
extensions/cocostudio/loader/parsers/uiParser-1.x.js
@@ -662,6 +662,13 @@
var va = options["vAlignment"];
if(va)
widget.setTextVerticalAlignment(va);
+
+ var r = options["colorR"];
667
+ var g = options["colorG"];
668
+ var b = options["colorB"];
669
+ if (r !== undefined && g !== undefined && b !== undefined) {
670
+ widget.setTextColor(cc.color(r, g, b));
671
+ }
672
};
673
674
var register = [
0 commit comments