#include <NodeTest.h>
◆ NodeToWorld()
| NodeToWorld::NodeToWorld |
( |
| ) |
|
|
protected |
在文件 NodeTest.cpp 第 473 行定义.
480 auto back = Sprite::create(
s_back3);
481 addChild( back, -10);
482 back->setAnchorPoint( Vec2(0,0) );
483 auto backSize = back->getContentSize();
486 auto menu = Menu::create(item,
nullptr);
487 menu->alignItemsVertically();
488 menu->setPosition( Vec2(backSize.width/2, backSize.height/2));
489 back->addChild(menu);
491 auto rot = RotateBy::create(5.0f, 360.0f);
492 auto fe = RepeatForever::create( rot);
493 item->runAction( fe );
495 auto move = MoveBy::create(3.0f, Vec2(200.0f,0.0f));
496 auto move_back = move->reverse();
497 auto seq = Sequence::create( move, move_back,
nullptr);
498 auto fe2 = RepeatForever::create(seq);
499 back->runAction(fe2);
static const char s_PlaySelect[]
static const char s_back3[]
static const char s_PlayNormal[]
引用了 s_back3, s_PlayNormal , 以及 s_PlaySelect.
◆ CREATE_FUNC()
◆ subtitle()
| std::string NodeToWorld::subtitle |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NodeTest/NodeTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp