Skip to content

Commit

Permalink
Fix text color parser for TextField widget
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamicro committed Nov 19, 2015
1 parent 5bc73c6 commit 0893d7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,13 @@
var va = options["vAlignment"];
if(va)
widget.setTextVerticalAlignment(va);

var r = options["colorR"];
var g = options["colorG"];
var b = options["colorB"];
if (r !== undefined && g !== undefined && b !== undefined) {
widget.setTextColor(cc.color(r, g, b));
}
};

var register = [
Expand Down

0 comments on commit 0893d7d

Please sign in to comment.