mirror of https://github.com/axmolengine/axmol.git
Fix text color parser for TextField widget
This commit is contained in:
parent
5bc73c6ede
commit
0893d7d4ff
|
@ -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 = [
|
||||
|
|
2
web
2
web
|
@ -1 +1 @@
|
|||
Subproject commit 9f65531571443d7ea81beb86c3a7b5c2659057d0
|
||||
Subproject commit 56c240983a8c7a6b221f840e3c45ed3d733ef102
|
Loading…
Reference in New Issue