|
cocos2d-mac
1.0.1
Improved Cocos2D API Reference (Mac OS X version) for Kobold2D developers
|
#include <CCProgressTimer.h>
Public Member Functions | |
| id | initWithFile: (NSString *filename) |
| id | initWithTexture: (CCTexture2D *texture) |
Static Public Member Functions | |
| id | progressWithFile: (NSString *filename) |
| id | progressWithTexture: (CCTexture2D *texture) |
Protected Attributes | |
| CCProgressTimerType | type_ |
| float | percentage_ |
| CCSprite * | sprite_ |
| int | vertexDataCount_ |
| ccV2F_C4B_T2F * | vertexData_ |
Properties | |
| CCProgressTimerType | type |
| float | percentage |
| CCSprite * | sprite |
CCProgresstimer is a subclass of CCNode. It renders the inner sprite according to the percentage. The progress can be Radial, Horizontal or vertical.
| id CCProgressTimer::initWithFile: | ( | NSString * | filename | ) | [virtual] |
Initializes a progress timer with an image filename as the shape the timer goes through
| id CCProgressTimer::initWithTexture: | ( | CCTexture2D * | texture | ) | [virtual] |
Creates a progress timer with the texture as the shape the timer goes through
| id CCProgressTimer::progressWithFile: | ( | NSString * | filename | ) | [static, virtual] |
Creates a progress timer with an image filename as the shape the timer goes through
| id CCProgressTimer::progressWithTexture: | ( | CCTexture2D * | texture | ) | [static, virtual] |
Creates a progress timer with the texture as the shape the timer goes through
float CCProgressTimer::percentage [read, write, assign] |
Percentages are from 0 to 100
CCSprite* CCProgressTimer::sprite [read, write, retain] |
The image to show the progress percentage
CCProgressTimerType CCProgressTimer::type [read, write, assign] |
Change the percentage to change progress.