axmol/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.cpp

27 lines
636 B
C++

#include "UITextBMFontTest_Editor.h"
UITextBMFontEditorTest::UITextBMFontEditorTest()
{
ADD_TEST_CASE(UITextBMFontTest_Editor);
}
// UITextBMFontTest_Editor
bool UITextBMFontTest_Editor::init()
{
if (UIScene_Editor::init())
{
Node* node = CSLoader::createNode("cocosui/UIEditorTest/UILabelBMFont/crossplatform_UILabelBMFont_Editor_1.csb");
Node* child = node->getChildByTag(5);
child->removeFromParent();
_layout = static_cast<Layout*>(child);
_touchGroup->addChild(_layout);
this->configureGUIScene();
return true;
}
return false;
}