Class cc.ControlSlider
- Defined in: CCControlSlider.js
- Extends cc.Control
Constructor Attributes | Constructor Name and Description |
---|---|
ControlSlider: Slider ui component.
|
Method Summary
Class Detail
cc.ControlSlider()
ControlSlider: Slider ui component.
Field Detail
{cc.Sprite}
backgroundSprite
- <@readonly> The overlay sprite
{Number}
maxAllowedValue
- The maximum allowed value of the slider
{Number}
maxValue
- The maximum value of the slider
{Number}
minAllowedValue
- The minimum allowed value of the slider
{Number}
minValue
- The minimum value of the slider
{cc.Sprite}
progressSprite
- <@readonly> The background sprite
{Number}
thumbSprite
- <@readonly> Brightness value of the picker
{Number}
value
- The value of the slider
Method Detail
-
<static> cc.ControlSlider.create(bgFile, progressFile, thumbFile)Creates a slider with a given background sprite and a progress bar and a thumb item.
- Parameters:
- bgFile
- progressFile
- thumbFile
- See:
- initWithBackgroundSprite:progressSprite:thumbMenuItem:
-
initWithSprites(backgroundSprite, progressSprite, thumbSprite)Initializes a slider with a background sprite, a progress bar and a thumb item.
-
valueForLocation(location)Returns the value for the given location.
- Parameters:
- location