cocos2d-mac  1.0.1
Improved Cocos2D API Reference (Mac OS X version) for Kobold2D developers
CCProgressTimer Interface Reference

#include <CCProgressTimer.h>

Inheritance diagram for CCProgressTimer:
Collaboration diagram for CCProgressTimer:

List of all members.

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_
CCSpritesprite_
int vertexDataCount_
ccV2F_C4B_T2FvertexData_

Properties

CCProgressTimerType type
float percentage
CCSpritesprite

Detailed Description

CCProgresstimer is a subclass of CCNode. It renders the inner sprite according to the percentage. The progress can be Radial, Horizontal or vertical.

Since:
v0.99.1

Member Function Documentation

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


Property Documentation

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.


The documentation for this interface was generated from the following file: