按钮

来源:互联网 发布:ac尼尔森数据 ly ty 编辑:程序博客网 时间:2024/04/29 01:00


//创建按钮CCControlButton* jumpBtn = CCControlButton::create(jumpTitle, norBG);jumpBtn->setPosition(ccp(visibleSize.width-80, 50));jumpBtn->setBackgroundSpriteForState(lightBG, CCControlStateHighlighted);//按钮事件jumpBtn->addTargetWithActionForControlEvents(this, cccontrol_selector(TollgateScene::jumpEvent),CCControlEventTouchDown);this->addChild(jumpBtn);



0 0
原创粉丝点击