Inherits from Button : TouchableNode : CCNode : NSObject
Declared in ImageAndLabelButton.h

Properties

label

Class Methods

buttonWithImageFile:label:target:selector:

Create a new button.

+ (id)buttonWithImageFile:(NSString *)filename label:(CCLabelTTF *)label target:(id)target selector:(SEL)selector

Parameters

filename

the filename of the image to use as a touchable portion.

label

the label to display to the right of the image.

target

the target to notify when the button is pressed.

selector

the selector to call when the button is pressed.

Return Value

a new button.

Declared In

ImageAndLabelButton.h

Instance Methods

initWithImageFile:label:target:selector:

Initialize a button.

- (id)initWithImageFile:(NSString *)filename label:(CCLabelTTF *)label target:(id)target selector:(SEL)selector

Parameters

filename

the filename of the image to use as a touchable portion.

label

the label to display to the right of the image.

target

the target to notify when the button is pressed.

selector

the selector to call when the button is pressed.

Return Value

the initialized button.

Declared In

ImageAndLabelButton.h