首页 > 代码库 > UI Editor

UI Editor

//添加UI
UILayer* uiLayer = UILayer::create(); auto myLayout = dynamic_cast<Layout*>(GUIReader::shareReader()->widgetFromJsonFile("DemoLogin.json")); uiLayer->addWidget(myLayout); uiLayer->setPosition(ccp(0, 0)); this->addChild(uiLayer);