Skip to main content

CCProgressTimer

CCProgressTimer

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}

Constructors

CCProgressTimer(CCSprite)

CCProgressTimer(CCSprite)(Cocos2D.CCSprite sp)
Parameters:
sp (Cocos2D.CCSprite)
Example

CCProgressTimer(string)

CCProgressTimer(string)(System.String fileName)
Parameters:
fileName (System.String)

Fields

m_bReverseDirection(System.Boolean)
m_eType(Cocos2D.CCProgressTimerType)
m_fPercentage(System.Single)
m_nVertexDataCount(System.Int32)
m_pSprite(Cocos2D.CCSprite)
m_pVertexData(Cocos2D.CCV3F_C4B_T2F[])
m_tBarChangeRate(Cocos2D.CCPoint)
m_tMidpoint(Cocos2D.CCPoint)

Properties

BarChangeRate(Cocos2D.CCPoint)
Color(Cocos2D.CCColor3B)

Gets or sets the color

IsOpacityModifyRGB(System.Boolean)

sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then oapcity will be applied as: glColor(opacity, opacity, opacity, opacity ); Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO @since v0.8

Midpoint(Cocos2D.CCPoint)
Opacity(System.Byte)

Gets or sets the Opacity @warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed. Values goes from 0 to 255, where 255 means fully opaque.

Percentage(System.Single)
ReverseDirection(System.Boolean)
ReverseProgress(System.Boolean)
Sprite(Cocos2D.CCSprite)
Type(Cocos2D.CCProgressTimerType)

Methods

BoundaryTexCoord(int)

Cocos2D.CCPoint BoundaryTexCoord(int)(System.Int32 index)
Parameters:
index (System.Int32)
Returns:
Cocos2D.CCPoint

Draw()

Draw()()

This is called from the Visit() method. This is where you DRAW your node. Only draw stuff from this method call.

Example

InitWithSprite(CCSprite)

System.Boolean InitWithSprite(CCSprite)(Cocos2D.CCSprite sp)
Parameters:
sp (Cocos2D.CCSprite)
Returns:
System.Boolean

TextureCoordFromAlphaPoint(CCPoint)

Cocos2D.CCTex2F TextureCoordFromAlphaPoint(CCPoint)(Cocos2D.CCPoint alpha)
Parameters:
alpha (Cocos2D.CCPoint)
Returns:
Cocos2D.CCTex2F

UpdateBar()

UpdateBar()()

UpdateColor()

UpdateColor()()

UpdateProgress()

UpdateProgress()()

UpdateRadial()

UpdateRadial()()
Example

VertexFromAlphaPoint(CCPoint)

Cocos2D.CCVertex3F VertexFromAlphaPoint(CCPoint)(Cocos2D.CCPoint alpha)
Parameters:
alpha (Cocos2D.CCPoint)
Returns:
Cocos2D.CCVertex3F