#include <ActionsProgressTest.h>
◆ CREATE_FUNC()
◆ onEnter()
| void SpriteProgressToRadial::onEnter |
( |
| ) |
|
|
overridevirtual |
重载 SpriteDemo .
在文件 ActionsProgressTest.cpp 第 74 行定义.
78 auto s = Director::getInstance()->getWinSize();
80 auto to1 = Sequence::createWithTwoActions(ProgressTo::create(2, 100), ProgressTo::create(0, 0));
81 auto to2 = Sequence::createWithTwoActions(ProgressTo::create(2, 100), ProgressTo::create(0, 0));
83 auto left = ProgressTimer::create(Sprite::create(
s_pathSister1));
84 left->setType( ProgressTimer::Type::RADIAL );
86 left->setPosition(100, s.height/2);
87 left->runAction( RepeatForever::create(to1));
89 auto right = ProgressTimer::create(Sprite::create(
s_pathBlock));
90 right->setType(ProgressTimer::Type::RADIAL);
92 right->setReverseDirection(
true);
94 right->setPosition(s.width-100, s.height/2);
95 right->runAction( RepeatForever::create(to2));
virtual void onEnter() override
static const char s_pathSister1[]
static const char s_pathBlock[]
引用了 SpriteDemo::onEnter(), s_pathBlock , 以及 s_pathSister1.
◆ subtitle()
| std::string SpriteProgressToRadial::subtitle |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成: