I am trying to incorporate UI buttons in my game since they look pretty self explanatory. I have been running into a few questions…
Is it possible to rotate a UI button or image
local button1 = ui.newButton{
default = "images/button1.png",
over = "images/button2.png",
onPress = button1Press,
onRelease = button1Release,
text = "Play",
emboss = true,
}
button1.x = \_W/2; button1.y = \_W/2
I would like to rotate everything such as the pictures and the text, but a simple command of rotation = 90 does not work.
and my last question. just to make sure, does the following code erase the ui button from memory just like any display object?
button1:removeSelf()
button1 = nil
Thanks,
Brian [import]uid: 24708 topic_id: 14677 reply_id: 314677[/import]