Thanks for all of you who has contributed or will contribute to the community,
especially to Walzer and his great team.
i want to share a slide control using cocos2dx. it is oringinally from pmanna in cocos2d version,
and i change it to c++ and made some useful improvement.
any advice is welcome.
Thanks for sharing this, it was the inspiration I needed to start porting some of YannickL’s “CCControlExtension” classes to cocos2d-x! One of the problems I found with the CCMenuItemSlider class above is that you use a separate menu class to hold the sliders (to detect and process touches), while YannickL’s approach is to allow each control to do the processing of the touches. For that purpose, I created a “passive” menu, which is simply a container, without any processing of touches (but this is not essential)