bool HelloWorld::init()
{
COCOUISYSTEM->init();
COCOUISYSTEM->resetSystem(this);
COCOUISYSTEM->replaceUISceneWithFile(this,“DemoHead_UI.json”, 1, false);
CocoButton* exitbutton=CocoButton::create();
exitbutton->setTextures(“CloseNormal.png”,“CloseSelected.png”,"");
exitbutton->setPosition(ccp(460,60));
COCOUISYSTEM->getCurScene()->addWidget(exitbutton);
return true;
}
资源放在了resource里面了 但是代码做的按钮画出来了,studio导出的DemoHead_UI.json却没有出来,会是什么问题?本人刚刚学习,烦请各位不吝赐教。