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

26 lines
627 B
C++
Raw Normal View History

2014-03-04 16:51:35 +08:00
#include "UIImageViewTest_Editor.h"
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())
{
2014-10-18 14:48:27 +08:00
Node* node = CSLoader::createNode("cocosui/UIEditorTest/UIImageView/crossplatform_UIImageView_Editor_1.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;
}