Is there a way to use a frame of an Image Sheet with a widget button?
local widget = require "widget"
local button = widget.newButton{
default = "buttongraphic.png", over = "buttongraphic-over.png", width = 150,
height = 200
}
From Mr. Beebe:
"Jonathan Beebe May 23rd, 2012 at 8:34 am
Hi all —
Good news: imageSheet support in widget.newButton() is coming soon. In fact, it should be rolling out in one of the next few daily builds (not sure exactly which one it will be in). It’ll be easy too: you’ll simply specify ‘sheet’, ‘defaultIndex’, and ‘overIndex’ options instead of graphics files when creating the widget."
Source: http://blog.anscamobile.com/2012/05/adding-buttons-to-your-games-and-apps/ [import]uid: 73951 topic_id: 26689 reply_id: 326689[/import]