CCProgressTimer
CCProgressTimer
Cocos2DInheritance: 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
Properties
Gets or sets the color
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
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.
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