CCControlSwitch


#1

I ported one of the control from assist CCControlExtencion(http://www.cocos2d-x.org/projects/cocos2d-x/assets/1) that is in the original source code for iOS. This switch. However, it does not have any nice animation as the class is not yet implemented CCActionTwin, but otherwise - you can use!:slight_smile:


CCControlSwitch.zip (4.5 KB)


#2

Thanks.

I have tested it. It seems that the control cannot be affected by setting anchor point.


#3

Hмммм…. Well, in the original class for Object-C for CCCSwitchControl there is no overridden method setting anchor point . I just ported the class. Sorry! You can add it without any problems on their own;)


#4

Fix some bugs