#include <ActionsTest.h>
◆ callback1()
| void ActionSequence2::callback1 |
( |
| ) |
|
在文件 ActionsTest.cpp 第 758 行定义.
760 auto s = Director::getInstance()->getWinSize();
761 auto label = Label::createWithTTF(
"callback 1 called",
"fonts/Marker Felt.ttf", 16.0f);
762 label->setPosition(s.width/4*1,s.height/2);
被这些函数引用 onEnter().
◆ callback2()
| void ActionSequence2::callback2 |
( |
Node * |
sender | ) |
|
在文件 ActionsTest.cpp 第 767 行定义.
769 auto s = Director::getInstance()->getWinSize();
770 auto label = Label::createWithTTF(
"callback 2 called",
"fonts/Marker Felt.ttf", 16.0f);
771 label->setPosition(s.width/4*2,s.height/2);
被这些函数引用 onEnter().
◆ callback3()
| void ActionSequence2::callback3 |
( |
Node * |
sender, |
|
|
long |
data |
|
) |
| |
在文件 ActionsTest.cpp 第 776 行定义.
778 auto s = Director::getInstance()->getWinSize();
779 auto label = Label::createWithTTF(
"callback 3 called",
"fonts/Marker Felt.ttf", 16.0f);
780 label->setPosition(s.width/4*3,s.height/2);
被这些函数引用 onEnter().
◆ CREATE_FUNC()
◆ onEnter()
| void ActionSequence2::onEnter |
( |
| ) |
|
|
overridevirtual |
重载 ActionsDemo .
在文件 ActionsTest.cpp 第 738 行定义.
746 auto action = Sequence::create(
747 Place::create(Vec2(200.0f,200.0f)),
749 MoveBy::create(1, Vec2(100.0f,0.0f)),
void callback2(Node *sender)
void callback3(Node *sender, long data)
cocos2d::Sprite * _grossini
virtual void onEnter() override
void alignSpritesLeft(unsigned int numberOfSprites)
引用了 ActionsDemo::_grossini, ActionsDemo::alignSpritesLeft(), callback1(), callback2(), callback3() , 以及 ActionsDemo::onEnter().
◆ subtitle()
| std::string ActionSequence2::subtitle |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp