diff --git a/extensions/CocoStudio/Reader/CCSSceneReader.cpp b/extensions/CocoStudio/Reader/CCSSceneReader.cpp index f0d25afef9..cc49a97398 100644 --- a/extensions/CocoStudio/Reader/CCSSceneReader.cpp +++ b/extensions/CocoStudio/Reader/CCSSceneReader.cpp @@ -316,16 +316,16 @@ NS_CC_EXT_BEGIN } else if(comName != NULL && strcmp(comName, "GUIComponent") == 0) { - /* cocos2d::extension::UILayer *pLayer = cocos2d::extension::UILayer::create(); + cocos2d::extension::UILayer *pLayer = cocos2d::extension::UILayer::create(); pLayer->scheduleUpdate(); UIWidget* widget=cocos2d::extension::UIHelper::instance()->createWidgetFromJsonFile(pPath.c_str()); pLayer->addWidget(widget); - CCComRender *pRender = CCComRender::create(pLayer, "GUIComponent"); + ComRender *pRender = ComRender::create(pLayer, "GUIComponent"); if (pComName != NULL) { pRender->setName(pComName); } - gb->addComponent(pRender);*/ + gb->addComponent(pRender); } CC_SAFE_DELETE(subDict); diff --git a/extensions/cocos-ext.h b/extensions/cocos-ext.h index 9d5e3f0501..3e70ae7fde 100644 --- a/extensions/cocos-ext.h +++ b/extensions/cocos-ext.h @@ -72,10 +72,13 @@ #include "CocoStudio/Components/CCComController.h" #include "CocoStudio/Components/CCComRender.h" +#include "CocoStudio/GUI/System/CocosGUI.h" + #include "CocoStudio/Json/CSContentJsonDictionary.h" #include "CocoStudio/Json/DictionaryHelper.h" #include "CocoStudio/Reader/CCSSceneReader.h" +#include "CocoStudio/Reader/CCSGUIReader.h"