bump I’ve got the same problem. What’s wrong with this menu setup in 2.1.1?
`void RUIMain::onEnter()
{
this->setTouchEnabled( true );
CCDirector* director = CCDirector::sharedDirector();
CCSize winSize = director->getWinSize();
CCLayerColor* background = CCLayerColor::create( ccc4( 64, 178, 150, 255 ), winSize.width, winSize.height );
this->addChild( background, Child::Z::background, Child::CCNode_background );
CCMenuItemLabel* newGame = CCMenuItemLabel::create( CCLabelTTF::create( "New Game", "adrip1.ttf", 24 ), this, menu_selector( RUIMain::callNewGame ) );
CCMenuItemLabel* loadGame = CCMenuItemLabel::create( CCLabelTTF::create( "Load Game", "adrip1.ttf", 24 ), this, menu_selector( RUIMain::callLoadGame ) );
CCMenuItemLabel* options = CCMenuItemLabel::create( CCLabelTTF::create( "Options", "adrip1.ttf", 24 ), this, menu_selector( RUIMain::callOptions ) );
CCMenuItemLabel* quit = CCMenuItemLabel::create( CCLabelTTF::create( "Quit", "adrip1.ttf", 24 ), this, menu_selector( RUIMain::callQuit ) );
quit->setColor( ccc3( 201, 176, 69 ) );
quit->setEnabled( true );
CCMenu* mainMenu = CCMenu::create( newGame, loadGame, options, quit, NULL );
this->addChild( mainMenu, Child::Z::mainMenu, Child::CCMenu_mainMenu );
mainMenu->alignItemsVerticallyWithPadding( 10 );
mainMenu->setTouchEnabled(true);
mainMenu->setEnabled(true);
}
void RUIMain::callNewGame(cocos2d::CCObject *sender)
{
}
void RUIMain::callLoadGame(cocos2d::CCObject *sender)
{
}
void RUIMain::callOptions(cocos2d::CCObject *sender)
{
}
void RUIMain::callQuit(cocos2d::CCObject *sender)
{
CCDirector::sharedDirector()->end();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
exit(0);
#endif
}`
Anyone? Is there a fix for this?