#import <CCProgressTimer.h>
Inherits CCNode.

Public Member Functions | |
| (id) | - initWithFile: |
| (id) | - initWithTexture: |
Static Public Member Functions | |
| (id) | + progressWithFile: |
| (id) | + progressWithTexture: |
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.
Definition at line 53 of file CCProgressTimer.h.
| - (id) initWithFile: | (NSString *) | filename |
Initializes a progress timer with an image filename as the shape the timer goes through
| - (id) initWithTexture: | (CCTexture2D *) | texture |
Creates a progress timer with the texture as the shape the timer goes through
| + (id) progressWithFile: | (NSString *) | filename |
Creates a progress timer with an image filename as the shape the timer goes through
| + (id) progressWithTexture: | (CCTexture2D *) | texture |
Creates a progress timer with the texture as the shape the timer goes through
- (float) percentage [read, write, assign] |
Percentages are from 0 to 100
Definition at line 66 of file CCProgressTimer.h.
- (CCSprite*) sprite [read, write, retain] |
The image to show the progress percentage
Definition at line 69 of file CCProgressTimer.h.
- (CCProgressTimerType) type [read, write, assign] |
Change the percentage to change progress.
Definition at line 63 of file CCProgressTimer.h.