Merge pull request #12509 from xiaofeng11/v3_xiaofeng

Add a text label to Node3DReader Test, notice user there has no content to show
This commit is contained in:
pandamicro 2015-06-24 17:10:08 +08:00
commit 6638a53d69
1 changed files with 7 additions and 0 deletions

View File

@ -77,6 +77,13 @@ CSNode3DTest::CSNode3DTest()
{ {
auto node = CSLoader::createNode("ccs-res/CocosStudio3DTest/Node3D.csb"); auto node = CSLoader::createNode("ccs-res/CocosStudio3DTest/Node3D.csb");
auto size = Director::getInstance()->getWinSize();
auto label = Label::create();
label->setString(std::string("Function demo, no content to show"));
label->setPosition(size.width / 2, size.height / 2);
label->setTextColor(Color4B::ORANGE);
node->addChild(label);
addChild(node); addChild(node);
} }