Skip to main content

CCControlSlider

CCControlSlider

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer → Cocos2D.CCLayerRGBA → Cocos2D.CCControl

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

Constructors

CCControlSlider(CCSprite, CCSprite, CCSprite)

CCControlSlider(CCSprite, CCSprite, CCSprite)(Cocos2D.CCSprite backgroundSprite, Cocos2D.CCSprite progressSprite, Cocos2D.CCSprite thumbSprite)
Parameters:
backgroundSprite (Cocos2D.CCSprite)
progressSprite (Cocos2D.CCSprite)
thumbSprite (Cocos2D.CCSprite)
Example

CCControlSlider(string, string, string)

CCControlSlider(string, string, string)(System.String bgFile, System.String progressFile, System.String thumbFile)
Parameters:
bgFile (System.String)
progressFile (System.String)
thumbFile (System.String)
Example

Properties

BackgroundSprite(Cocos2D.CCSprite)
Enabled(System.Boolean)

Tells whether the control is enabled.

MaximumAllowedValue(System.Single)
MaximumValue(System.Single)
MinimumAllowedValue(System.Single)
MinimumValue(System.Single)
ProgressSprite(Cocos2D.CCSprite)
SnappingInterval(System.Single)
ThumbSprite(Cocos2D.CCSprite)
Value(System.Single)

Methods

InitWithSprites(CCSprite, CCSprite, CCSprite)

System.Boolean InitWithSprites(CCSprite, CCSprite, CCSprite)(Cocos2D.CCSprite backgroundSprite, Cocos2D.CCSprite progressSprite, Cocos2D.CCSprite thumbSprite)
Parameters:
backgroundSprite (Cocos2D.CCSprite)
progressSprite (Cocos2D.CCSprite)
thumbSprite (Cocos2D.CCSprite)
Returns:
System.Boolean
Example

IsTouchInside(CCTouch)

System.Boolean IsTouchInside(CCTouch)(Cocos2D.CCTouch touch)

Returns a boolean value that indicates whether a touch is inside the bounds of the receiver. The given touch must be relative to the world. @param touch A CCTouch object that represents a touch. @return YES whether a touch is inside the receiver�s rect.

Parameters:
touch (Cocos2D.CCTouch)
Returns:
System.Boolean
Example

LocationFromTouch(CCTouch)

Cocos2D.CCPoint LocationFromTouch(CCTouch)(Cocos2D.CCTouch touch)
Parameters:
touch (Cocos2D.CCTouch)
Returns:
Cocos2D.CCPoint

NeedsLayout()

NeedsLayout()()
Example

SliderBegan(CCPoint)

SliderBegan(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location (Cocos2D.CCPoint)

SliderEnded(CCPoint)

SliderEnded(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location (Cocos2D.CCPoint)

SliderMoved(CCPoint)

SliderMoved(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location (Cocos2D.CCPoint)

TouchBegan(CCTouch)

System.Boolean TouchBegan(CCTouch)(Cocos2D.CCTouch touch)

Returns true signaling that this node will consume the touch.

Parameters:
touch (Cocos2D.CCTouch)
Returns:
System.Boolean
Example

TouchEnded(CCTouch)

TouchEnded(CCTouch)(Cocos2D.CCTouch pTouch)
Parameters:
pTouch (Cocos2D.CCTouch)
Example

TouchMoved(CCTouch)

TouchMoved(CCTouch)(Cocos2D.CCTouch pTouch)
Parameters:
pTouch (Cocos2D.CCTouch)
Example

ValueForLocation(CCPoint)

System.Single ValueForLocation(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location (Cocos2D.CCPoint)
Returns:
System.Single
Example