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();
|
gui::UILayer *pLayer = gui::UILayer::create();
|
||||||
pLayer->scheduleUpdate();
|
pLayer->scheduleUpdate();
|
||||||
// UIWidget* widget= gui::UIHelper::instance()->createWidgetFromJsonFile(pPath.c_str());
|
UIWidget* widget= GUIReader::shareReader()->widgetFromJsonFile(pPath.c_str());
|
||||||
// pLayer->addWidget(widget);
|
pLayer->addWidget(widget);
|
||||||
ComRender *pRender = ComRender::create(pLayer, "GUIComponent");
|
ComRender *pRender = ComRender::create(pLayer, "GUIComponent");
|
||||||
if (pComName != NULL)
|
if (pComName != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue