axmol/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.cpp

42 lines
795 B
C++
Raw Normal View History

2014-03-04 16:51:35 +08:00
#include "UIPageViewTest_Editor.h"
#include "VisibleRect.h"
2014-03-04 16:51:35 +08:00
2015-04-09 12:23:47 +08:00
USING_NS_CC;
using namespace cocos2d::ui;
UIPageViewEditorTests::UIPageViewEditorTests()
{
ADD_TEST_CASE(UIPageViewTest_Editor);
}
2014-03-04 16:51:35 +08:00
// UIPageViewTest_Editor
UIPageViewTest_Editor::UIPageViewTest_Editor()
: _displayValueLabel(nullptr)
2014-03-04 16:51:35 +08:00
{
}
UIPageViewTest_Editor::~UIPageViewTest_Editor()
{
}
bool UIPageViewTest_Editor::init()
{
if (UIScene_Editor::init())
{
Node* node = CSLoader::createNode("cocosui/UIEditorTest/UIPageView/res.csb");
Node* child = node->getChildByTag(5);
child->removeFromParent();
_layout = static_cast<Layout*>(child);
_touchGroup->addChild(_layout);
this->configureGUIScene();
2014-03-04 16:51:35 +08:00
return true;
}
return false;
2014-03-11 17:13:54 +08:00
}