Class cc.ControlPotentiometer
- Defined in: CCControlPotentiometer.js
- Extends cc.Control
Constructor Attributes | Constructor Name and Description |
---|---|
CCControlPotentiometer: Potentiometer control for Cocos2D.
|
Method Summary
Class Detail
cc.ControlPotentiometer()
CCControlPotentiometer: Potentiometer control for Cocos2D.
Field Detail
{Number}
maxValue
- The maximum value of the potentionmeter
{Number}
minValue
- The minimum value of the potentionmeter
{cc.Point}
prevLocation
- The previous location of the potentionmeter
{cc.ProgressTimer}
progressTimer
- The progress timer of the potentionmeter
{cc.Sprite}
thumbSprite
- The thumb sprite of the potentionmeter
{Number}
value
- The current value of the potentionmeter
Method Detail
-
{Number} angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(beginLineA, endLineA, beginLineB, endLineB)the angle in degree between line1 and line2.
- Returns:
- {Number}
-
{Number} distanceBetweenPointAndPoint(point1, point2)the distance between the point1 and point2
- Returns:
- {Number}
-
{Boolean} initWithTrackSprite_ProgressTimer_ThumbSprite(trackSprite, progressTimer, thumbSprite)
- Parameters:
- {cc.Sprite} trackSprite
- {cc.ProgressTimer} progressTimer
- {cc.Sprite} thumbSprite
- Returns:
- {Boolean}