The typical way of creating a button is this:
local btn = ui.newButton{
default = "images/buttonImage.png",
over = "images/buttonImageOver.png",
onEvent = levelSelected,
id = someId,
text = "someText",
size = 10,
emboss=false
}
But since display.newImageRect isn’t used, how can we create buttons that are compatible with different resolutions? [import]uid: 52127 topic_id: 12154 reply_id: 312154[/import]