|
cocos2d-iphone-extensions
0.2
Cocos2D Extensions API Reference (iOS version) for www.kobold2d.com developers
|
Public Member Functions | |
| (id) | - initWithBackgroundFile:thumbFile: |
| (id) | - initWithBackgroundSprite:thumbMenuItem: |
Static Public Member Functions | |
| (id) | + sliderWithBackgroundFile:thumbFile: |
| (id) | + sliderWithBackgroundSprite:thumbMenuItem: |
Protected Attributes | |
| float | minX |
| float | maxX |
| CCMenuItem * | _thumb |
| CCSprite * | _bg |
Properties | |
| float | value |
for Cocos2D. Designed with SFX/Music level options in mind.
| - (id) initWithBackgroundFile: | (NSString *) | bgFile | |
| thumbFile: | (NSString *) | thumbFile | |
Easy init - filenames instead of CCSprite & CCMenuItem. Uses designated init inside.
| thumbFile | Filename, that is used to create normal & selected images for thumbMenuItem. Selected sprite is darker than normal sprite. |
| bgFile | Filename for background CCSprite. |
| - (id) initWithBackgroundSprite: | (CCSprite *) | bgSprite | |
| thumbMenuItem: | (CCMenuItem *) | aThumb | |
Designated init.
| bgSprite | CCSprite, that is used as a background. It's bounding box is used to determine max & min x position for a thumb menu item. |
| aThumb | MenuItem that is used as a thumb. Used without CCMenu, so CCMenuItem::activate doesn't get called. |
| + (id) sliderWithBackgroundFile: | (NSString *) | bgFile | |
| thumbFile: | (NSString *) | thumbFile | |
Creates slider with backround image filename & thumb image filename.
| + (id) sliderWithBackgroundSprite: | (CCSprite *) | bgSprite | |
| thumbMenuItem: | (CCMenuItem *) | aThumb | |
Creates slider with given bg sprite and menu item as a thumb.
- (float) value [read, write, assign] |
Current chosen value, min is 0.0f, max is 1.0f.