@@ -3316,8 +3316,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3316
3316
// Glow SDF (GPU)
3317
3317
auto label1 = Label::createWithTTF (ttfConf, " Glow1" , TextHAlignment::CENTER, s.width );
3318
3318
label1->setPosition (Vec2 (s.width / 2 , s.height * 0.7 ));
3319
- label1->setTextColor (Color4B ::GREEN);
3320
- label1->enableGlow (Color4B ::YELLOW);
3319
+ label1->setTextColor (Color32 ::GREEN);
3320
+ label1->enableGlow (Color32 ::YELLOW);
3321
3321
label1->enableUnderline ();
3322
3322
label1->enableStrikethrough ();
3323
3323
addChild (label1);
@@ -3326,8 +3326,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3326
3326
ttfConf.distanceFieldEnabled = false ;
3327
3327
auto label2 = Label::createWithTTF (ttfConf, " Glow2" , TextHAlignment::CENTER, s.width );
3328
3328
label2->setPosition (Vec2 (s.width / 2 , s.height * 0.6 ));
3329
- label2->setTextColor (Color4B ::GREEN);
3330
- label2->enableGlow (Color4B ::YELLOW);
3329
+ label2->setTextColor (Color32 ::GREEN);
3330
+ label2->enableGlow (Color32 ::YELLOW);
3331
3331
label2->enableUnderline ();
3332
3332
label2->enableStrikethrough ();
3333
3333
addChild (label2);
@@ -3337,8 +3337,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3337
3337
ttfConf.outlineSize = 2 ;
3338
3338
auto label3 = Label::createWithTTF (ttfConf, " Outline1" , TextHAlignment::CENTER, s.width );
3339
3339
label3->setPosition (Vec2 (s.width / 2 , s.height * 0.48 ));
3340
- label3->setTextColor (Color4B ::RED);
3341
- label3->enableOutline (Color4B ::BLUE);
3340
+ label3->setTextColor (Color32 ::RED);
3341
+ label3->enableOutline (Color32 ::BLUE);
3342
3342
label3->enableUnderline ();
3343
3343
label3->enableStrikethrough ();
3344
3344
addChild (label3);
@@ -3348,8 +3348,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3348
3348
ttfConf.outlineSize = 2 ;
3349
3349
auto label4 = Label::createWithTTF (ttfConf, " Outline2" , TextHAlignment::CENTER, s.width );
3350
3350
label4->setPosition (Vec2 (s.width / 2 , s.height * 0.36 ));
3351
- label4->setTextColor (Color4B ::RED);
3352
- label4->enableOutline (Color4B ::BLUE, 2 );
3351
+ label4->setTextColor (Color32 ::RED);
3352
+ label4->enableOutline (Color32 ::BLUE, 2 );
3353
3353
label4->enableUnderline ();
3354
3354
label4->enableStrikethrough ();
3355
3355
addChild (label4);
@@ -3365,29 +3365,29 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3365
3365
Label* labels[count];
3366
3366
3367
3367
labels[0 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::TOP\n using setTextColor(255, 0, 255, 100)" , font, 14 , Vec2::ZERO, TextHAlignment::LEFT, TextVAlignment::TOP);
3368
- labels[0 ]->setTextColor (Color4B (255 , 0 , 255 , 100 ));
3369
- labels[0 ]->enableGlow (Color4B ::BLUE);
3368
+ labels[0 ]->setTextColor (Color32 (255 , 0 , 255 , 100 ));
3369
+ labels[0 ]->enableGlow (Color32 ::BLUE);
3370
3370
3371
3371
labels[1 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::CENTER\n using setColor(*RED*)" , font, 14 , Vec2::ZERO, TextHAlignment::RIGHT, TextVAlignment::CENTER);
3372
3372
labels[1 ]->setColor (Color3B::RED);
3373
3373
3374
3374
labels[2 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::BOTTOM\n usingsetTextColor(*YELLOW)" , font, 14 ,
3375
3375
Vec2::ZERO, TextHAlignment::CENTER, TextVAlignment::BOTTOM);
3376
- labels[2 ]->setTextColor (Color4B ::YELLOW);
3376
+ labels[2 ]->setTextColor (Color32 ::YELLOW);
3377
3377
3378
3378
labels[3 ] = Label::createWithBMFont (" fonts/bitmapFontTest5.fnt" , " BMFont\n with default color" , TextHAlignment::CENTER, s.width );
3379
3379
3380
3380
labels[4 ] = Label::createWithBMFont (" fonts/bitmapFontTest5.fnt" , " BMFont\n using setTextColor(0, 255, 0, 100)" ,
3381
3381
TextHAlignment::CENTER, s.width );
3382
- labels[4 ]->setTextColor (Color4B (0 , 255 , 0 , 100 ));
3382
+ labels[4 ]->setTextColor (Color32 (0 , 255 , 0 , 100 ));
3383
3383
3384
3384
labels[5 ] = Label::createWithTTF (ttfConfig, " TTF setColor(*BLUE*)\n with multiline 1\n and a much more longer multiline 2" ,
3385
3385
TextHAlignment::LEFT, s.width );
3386
3386
labels[5 ]->setColor (Color3B::BLUE);
3387
3387
3388
3388
labels[6 ] = Label::createWithTTF (" TTF setTextColor(*RED*)\n with multiline 1\n and a much more longer multiline 2" ,
3389
3389
font, 14 );
3390
- labels[6 ]->setTextColor (Color4B ::RED);
3390
+ labels[6 ]->setTextColor (Color32 ::RED);
3391
3391
3392
3392
for (int i = 0 ; i < count; i++)
3393
3393
{
0 commit comments