Coco Studio
#include "cocostudio/CocoStudio.h"
#include "CocosGUI.h"
using namespace cocostudio;
using namespace ui;
Node* pNode = timeline::NodeReader::getInstance()->createNode("ShopLayer_1.json");
pNode->setPosition(-20, -80);
this->addChild(pNode);
Text* buy1Label = (Text*)pNode->getChildByTag(18);
Button* backButton = (Button*)pNode->getChildByTag(8);
backButton->addTouchEventListener(CC_CALLBACK_1(WinOrLoseLayer::backAction, this));
_bestLabel = (TextAtlas*)pNode->getChildByTag(11);