Class cc.ControlSwitch

CCControlSwitch Switch control for Cocos2D.

Class Summary
Constructor Attributes Constructor Name and Description
 

Method Summary

Class Detail

cc.ControlSwitch()

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