#include <LabelTestNew.h>
◆ LabelFNTandTTFEmpty()
| LabelFNTandTTFEmpty::LabelFNTandTTFEmpty |
( |
| ) |
|
在文件 LabelTestNew.cpp 第 458 行定义.
460 auto s = Director::getInstance()->getWinSize();
463 auto label1 = Label::createWithBMFont(
"fonts/bitmapFontTest3.fnt",
"", TextHAlignment::CENTER, s.width);
465 label1->setPosition(Vec2(s.width/2, s.height - 100));
468 TTFConfig ttfConfig(
"fonts/arial.ttf",24);
469 auto label2 = Label::createWithTTF(ttfConfig,
"", TextHAlignment::CENTER,s.width);
471 label2->setPosition(Vec2(s.width/2, s.height / 2));
473 auto label3 = Label::createWithCharMap(
"fonts/tuffy_bold_italic-charmap.plist");
475 label3->setPosition(Vec2(s.width/2, 100.0f));
void updateStrings(float dt)
引用了 kTagBitmapAtlas1, kTagBitmapAtlas2, kTagBitmapAtlas3, setEmpty , 以及 updateStrings().
◆ CREATE_FUNC()
◆ subtitle()
| std::string LabelFNTandTTFEmpty::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string LabelFNTandTTFEmpty::title |
( |
| ) |
const |
|
overridevirtual |
◆ updateStrings()
| void LabelFNTandTTFEmpty::updateStrings |
( |
float |
dt | ) |
|
◆ setEmpty
| bool LabelFNTandTTFEmpty::setEmpty |
|
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