CCControlSlider
CCControlSlider
Cocos2DInheritance: 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
Tells whether the control is enabled.
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