CCControlSwitchSprite
CCControlSwitchSprite
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCSprite
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol, Cocos2D.ICCActionTweenDelegate
Constructors
CCControlSwitchSprite()
CCControlSwitchSprite()()
Properties
MaskSprite(Cocos2D.CCSprite)
OffLabel(Cocos2D.CCLabelTTF)
OffPosition(System.Single)
OffSideWidth(System.Single)
OffSprite(Cocos2D.CCSprite)
OnLabel(Cocos2D.CCLabelTTF)
OnPosition(System.Single)
OnSideWidth(System.Single)
OnSprite(Cocos2D.CCSprite)
SliderXPosition(System.Single)
ThumbSprite(Cocos2D.CCSprite)
Methods
Draw()
Draw()()
This is called from the Visit() method. This is where you DRAW your node. Only draw stuff from this method call.
Example
InitWithMaskSprite(CCSprite, CCSprite, CCSprite, CCSprite, CCLabelTTF, CCLabelTTF)
System.Boolean InitWithMaskSprite(CCSprite, CCSprite, CCSprite, CCSprite, CCLabelTTF, CCLabelTTF)(Cocos2D.CCSprite maskSprite, Cocos2D.CCSprite onSprite, Cocos2D.CCSprite offSprite, Cocos2D.CCSprite thumbSprite, Cocos2D.CCLabelTTF onLabel, Cocos2D.CCLabelTTF offLabel)
Parameters:
maskSprite
(Cocos2D.CCSprite)onSprite
(Cocos2D.CCSprite)offSprite
(Cocos2D.CCSprite)thumbSprite
(Cocos2D.CCSprite)onLabel
(Cocos2D.CCLabelTTF)offLabel
(Cocos2D.CCLabelTTF)Returns:
System.Boolean
NeedsLayout()
NeedsLayout()()
UpdateTweenAction(float, string)
UpdateTweenAction(float, string)(System.Single value, System.String key)
Parameters:
value
(System.Single)key
(System.String)Example