Class cc.ControlSwitch

Class Summary
Constructor Attributes Constructor Name and Description
 
CCControlSwitch: Switch control ui component

Method Summary

Class Detail

cc.ControlSwitch()
CCControlSwitch: Switch control ui component

Method Detail

  • <static> cc.ControlSwitch.create(maskSprite, onSprite, offSprite, thumbSprite, onLabel, offLabel)
    Creates a switch with a mask sprite, on/off sprites for on/off states and a thumb sprite.
    Parameters:
    maskSprite
    onSprite
    offSprite
    thumbSprite
    onLabel
    offLabel
  • initWithMaskSprite(maskSprite, onSprite, offSprite, thumbSprite, onLabel, offLabel)
    Creates a switch with a mask sprite, on/off sprites for on/off states, a thumb sprite and an on/off labels.
    Parameters:
    maskSprite
    onSprite
    offSprite
    thumbSprite
    onLabel
    offLabel