It appears that the textColor property of a Text class instance’s TextField (set using the setTextProperty method of the Text class) is ignored when the text is rendered.
It’s possible to change the color of the text by changing the color property of the Text instance, but doing so affects the background color of the TextField (if a background color is being used) since Text.color is the tint color property inherited from the Image class (it gets multiplied in).
Examples:
Text will be the desired color, but the background color will be multiplied by text.color:
text.color = 0xD5D5D5; // Text will be grey
text.setTextProperty("background", true);
text.setTextProperty("backgroundColor", 0xFF0000);
Text will be white; the background color will be the desired color:
worldText.setTextProperty("textColor", 0x0xD5D5D5); // No effect
worldText.setTextProperty("background", true);
worldText.setTextProperty("backgroundColor", 0xFF0000);
Is there a way to change the text color without affecting background color? Any suggestions would be appreciated!