I created a button using ui.lua as shown below. It works fine, however, I can’t seem to figure out how to change the button textcolor later in the program.
button1 = ui.newButton{
default = “btnBlueMedium.png”,
over = “btnBlueMediumOver.png”,
onPress = textFieldButtonPress,
text = “Hello”,
textColor = { 240, 240, 90, 255 },
size = 16,
emboss = true
}
Does anyone know how to change the text color for the button later in the program? I tried everything. Nothing seems to work. Here’s what I tried:
button1:setTextColor(255,255,255)
button1.setTextColor(255,255,255)
button1:textcolor (255, 255, 255)
button1.textColor(255,255,255)
Any help would be appreciated. Thanks.
[import]uid: 104131 topic_id: 18474 reply_id: 318474[/import]
[import]uid: 52491 topic_id: 18474 reply_id: 70956[/import]