Modify scenereader

This commit is contained in:
CaiWenzhi 2013-11-13 10:16:16 +08:00
parent b688e39584
commit 03b3d583e8
1 changed files with 2 additions and 2 deletions

View File

@ -320,8 +320,8 @@ namespace cocostudio {
{
gui::UILayer *pLayer = gui::UILayer::create();
pLayer->scheduleUpdate();
// UIWidget* widget= gui::UIHelper::instance()->createWidgetFromJsonFile(pPath.c_str());
// pLayer->addWidget(widget);
UIWidget* widget= GUIReader::shareReader()->widgetFromJsonFile(pPath.c_str());
pLayer->addWidget(widget);
ComRender *pRender = ComRender::create(pLayer, "GUIComponent");
if (pComName != NULL)
{