I want to port the “cocos2d for iPhon” code.
CCMenuItemImage item2 = ;
But, it includes “sender”.
I don’t know how to use in cocos2d-x
I ported like this. however I must add new function.
So, I think it is not good way.
Must I use lambda function?
CCMenuItemImageitem2 = CCMenuItemImage::create(“NormalButtonImage.png”, “SelectedButtonImage.png”, “DisabledButtonImage.png”, this, menu_selector(NewScene::startItemImageCCLOG));
CCLOG (“CCMenuItemImage selected.”);