dmccuskey/DMC-Corona-Library — pull request #9 by conanh (2013-02-16 09:13:12+00:00)
Title: Added ability to buttons using images from image sheets instead of just files

Use by adding an "imageSheet" and "defaultIndex" configuration, with optional "upIndex" and "downIndex"

Here's an example:

local sheetData = {
-- image sheet options go here
}
local imageSheet = graphics.newImageSheet("images/parts.png", sheetData)

local pushBtnParams = {
id="plusButton",
width=100,
height=62,
sheet=self.imageSheet,
defaultIndex=1,
downIndex=2,
}
local button = ButtonFactory.create( "push", pushBtnParams )