Change the text colour on a button.

When I do the following:
local btMenu1 = ui.newButton{
default = “GreenButtonLarge.png”,
over = “GreenButtonLarge.png”,
onEvent = btMenu1t,
text = “MENU ITEM 2”,
id = “btMenu1”
}

The text appears white.

How do I change the text to black??? [import]uid: 77494 topic_id: 12746 reply_id: 312746[/import]

Please post your code in Lua tags in the future.

This is how;

[lua]local btMenu1 = ui.newButton{
default = “GreenButtonLarge.png”,
over = “GreenButtonLarge.png”,
onEvent = btMenu1t,
text = “MENU ITEM 2”,
id = “btMenu1”
}
btMenu1.text:setTextColor(0,0,0)[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 12746 reply_id: 46793[/import]

thanks :slight_smile: [import]uid: 77494 topic_id: 12746 reply_id: 46802[/import]

Not a problem :slight_smile: [import]uid: 52491 topic_id: 12746 reply_id: 46934[/import]