mirror of https://github.com/axmolengine/axmol.git
Modify scenereader
This commit is contained in:
parent
b688e39584
commit
03b3d583e8
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue