I am having problems customizing the colour of my input text when using native.newTextField. I can’t seem to change text colour from the default colour black to any colour of my choice. I’m using the object:setTextColor API to set the text colour but regardless of which colour I specify, it always comes out as black. Here is my sample code:
name\_in = native.newTextField( xMid + xMid\*0.1, h\*0.3, w\*0.3, h\*0.08 ) name\_in.inputType = "alphabet" name\_in.size = 20 name\_in.text = "Player Name" name\_in.align = "center" name\_in.hasBackground = false name\_in:setTextColor (0.5, 0.3, 0.8) screenGroup:insert( name\_in )
Kindly give suggestions as to what I may be doing wrong.