axmol/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.cpp

29 lines
639 B
C++
Raw Normal View History

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