No retina support for widget buttons?

Hello! i have recently tried widgets and when i was addint retina support to my app i encountered a problem.

with images i simply write:

display.newImageRect("foo.png"100,100)

But with widgets, how should i do there? with the Default and Over parameters ??

like:

default = "foo.png",  
over = "foo\_over.png",  

[import]uid: 134049 topic_id: 24636 reply_id: 324636[/import]

Try adding the width and height like this

[lua]local fooButton = widget.newButton{
default = “foo.png”,
over = “foo_over.png”,
width = 100,
height = 100
}[/lua]

You will also need 4 images, foo.png, foo@2x.png, foo_over.png and foo_over@2x.png.

Hopefully this helps.

Here’s a link to more documentation.

http://developer.anscamobile.com/reference/index/widgetnewbutton [import]uid: 123298 topic_id: 24636 reply_id: 99834[/import]