CCControlStepper
CCControlStepper
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
CCControlStepper()
CCControlStepper()()CCControlStepper(CCSprite, CCSprite)
CCControlStepper(CCSprite, CCSprite)(Cocos2D.CCSprite minusSprite, Cocos2D.CCSprite plusSprite)Parameters:
minusSprite (Cocos2D.CCSprite)plusSprite (Cocos2D.CCSprite)Fields
_autorepeat(System.Boolean)
_autorepeatCount(System.Int32)
_continuous(System.Boolean)
_maximumValue(System.Single)
_minimumValue(System.Single)
_minusLabel(Cocos2D.CCLabelTTF)
_minusSprite(Cocos2D.CCSprite)
_plusLabel(Cocos2D.CCLabelTTF)
_plusSprite(Cocos2D.CCSprite)
_stepValue(System.Single)
_touchInsideFlag(System.Boolean)
_touchedPart(Cocos2D.CCControlStepperPart)
_value(System.Single)
_wraps(System.Boolean)
Properties
IsContinuous(System.Boolean)
MaximumValue(System.Single)
MinimumValue(System.Single)
MinusLabel(Cocos2D.CCLabelTTF)
MinusSprite(Cocos2D.CCSprite)
PlusLabel(Cocos2D.CCLabelTTF)
PlusSprite(Cocos2D.CCSprite)
StepValue(System.Single)
Value(System.Single)
Wraps(System.Boolean)
Methods
InitWithMinusSpriteAndPlusSprite(CCSprite, CCSprite)
System.Boolean InitWithMinusSpriteAndPlusSprite(CCSprite, CCSprite)(Cocos2D.CCSprite minusSprite, Cocos2D.CCSprite plusSprite)Parameters:
minusSprite (Cocos2D.CCSprite)plusSprite (Cocos2D.CCSprite)Returns:
System.BooleanSetValueWithSendingEvent(float, bool)
SetValueWithSendingEvent(float, bool)(System.Single value, System.Boolean send)Parameters:
value (System.Single)send (System.Boolean)StartAutorepeat()
StartAutorepeat()()Example
StopAutorepeat()
StopAutorepeat()()Example
TouchBegan(CCTouch)
System.Boolean TouchBegan(CCTouch)(Cocos2D.CCTouch pTouch)Returns true signaling that this node will consume the touch.
Parameters:
pTouch (Cocos2D.CCTouch)Returns:
System.BooleanExample
TouchEnded(CCTouch)
TouchEnded(CCTouch)(Cocos2D.CCTouch pTouch)Parameters:
pTouch (Cocos2D.CCTouch)Example
TouchMoved(CCTouch)
TouchMoved(CCTouch)(Cocos2D.CCTouch pTouch)Parameters:
pTouch (Cocos2D.CCTouch)Example
Update(float)
Update(float)(System.Single dt)Parameters:
dt (System.Single)Example
UpdateLayoutUsingTouchLocation(CCPoint)
UpdateLayoutUsingTouchLocation(CCPoint)(Cocos2D.CCPoint location)Parameters:
location (Cocos2D.CCPoint)Example
Events
OnStep(Event)
OnValueChanged(Event)