#include <LabelTestNew.h>
◆ LabelCharMapColorTest()
| LabelCharMapColorTest::LabelCharMapColorTest |
( |
| ) |
|
在文件 LabelTestNew.cpp 第 1462 行定义.
1464 auto label1 = Label::createWithCharMap(
"fonts/tuffy_bold_italic-charmap.plist");
1466 label1->setAnchorPoint(Vec2::ANCHOR_BOTTOM_LEFT);
1467 label1->setPosition( Vec2(10,100) );
1468 label1->setOpacity( 200 );
1470 auto label2 = Label::createWithCharMap(
"fonts/tuffy_bold_italic-charmap.plist");
1472 label2->setAnchorPoint(Vec2::ANCHOR_BOTTOM_LEFT);
1473 label2->setPosition( Vec2(10,200) );
1474 label2->setColor( Color3B::RED );
1476 auto fade = FadeOut::create(1.0f);
1477 auto fade_in = fade->reverse();
1479 auto seq = Sequence::create(fade, fade_in, cb,
nullptr);
1480 auto repeat = RepeatForever::create( seq );
1481 label2->runAction( repeat );
void actionFinishCallback()
引用了 _time, actionFinishCallback(), kTagSprite1, kTagSprite2 , 以及 step().
◆ actionFinishCallback()
| void LabelCharMapColorTest::actionFinishCallback |
( |
| ) |
|
◆ CREATE_FUNC()
◆ step()
| void LabelCharMapColorTest::step |
( |
float |
dt | ) |
|
◆ subtitle()
| std::string LabelCharMapColorTest::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string LabelCharMapColorTest::title |
( |
| ) |
const |
|
overridevirtual |
◆ _time
| float LabelCharMapColorTest::_time |
|
private |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp