3382 auto size = Director::getInstance()->getVisibleSize();
3385 Label* label = Label::createWithTTF(
"TTF with setColor()",
"fonts/arial.ttf", 24.0f);
3386 label->enableUnderline();
3387 label->setColor(cocos2d::Color3B::BLUE);
3388 label->setPosition(size.width/2, size.height/5*4);
3389 this->addChild(label);
3392 Label* label2 = Label::createWithSystemFont(
"System with setColor()",
"Verdana", 24.0f);
3393 label2->enableUnderline();
3394 label2->setColor(cocos2d::Color3B::BLUE);
3395 label2->setPosition(size.width/2, size.height/5*3);
3396 this->addChild(label2);
3399 Label* label3 = Label::createWithTTF(
"TTF with setTextColor()",
"fonts/arial.ttf", 24.0f);
3400 label3->enableUnderline();
3401 label3->setTextColor(Color4B::BLUE);
3402 label3->setPosition(size.width/2, size.height/5*2);
3403 this->addChild(label3);
3406 Label* label4 = Label::createWithSystemFont(
"System with setTextColor()",
"Verdana", 24.0f);
3407 label4->enableUnderline();
3408 label4->setTextColor(Color4B::BLUE);
3409 label4->setPosition(size.width/2, size.height/5*1);
3410 this->addChild(label4);