@@ -3279,8 +3279,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3279
3279
// Glow SDF (GPU)
3280
3280
auto label1 = Label::createWithTTF (ttfConf, " Glow1" , TextHAlignment::CENTER, s.width );
3281
3281
label1->setPosition (Vec2 (s.width / 2 , s.height * 0.7 ));
3282
- label1->setTextColor (Color4B ::GREEN);
3283
- label1->enableGlow (Color4B ::YELLOW);
3282
+ label1->setTextColor (Color32 ::GREEN);
3283
+ label1->enableGlow (Color32 ::YELLOW);
3284
3284
label1->enableUnderline ();
3285
3285
label1->enableStrikethrough ();
3286
3286
addChild (label1);
@@ -3289,8 +3289,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3289
3289
ttfConf.distanceFieldEnabled = false ;
3290
3290
auto label2 = Label::createWithTTF (ttfConf, " Glow2" , TextHAlignment::CENTER, s.width );
3291
3291
label2->setPosition (Vec2 (s.width / 2 , s.height * 0.6 ));
3292
- label2->setTextColor (Color4B ::GREEN);
3293
- label2->enableGlow (Color4B ::YELLOW);
3292
+ label2->setTextColor (Color32 ::GREEN);
3293
+ label2->enableGlow (Color32 ::YELLOW);
3294
3294
label2->enableUnderline ();
3295
3295
label2->enableStrikethrough ();
3296
3296
addChild (label2);
@@ -3300,8 +3300,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3300
3300
ttfConf.outlineSize = 2 ;
3301
3301
auto label3 = Label::createWithTTF (ttfConf, " Outline1" , TextHAlignment::CENTER, s.width );
3302
3302
label3->setPosition (Vec2 (s.width / 2 , s.height * 0.48 ));
3303
- label3->setTextColor (Color4B ::RED);
3304
- label3->enableOutline (Color4B ::BLUE);
3303
+ label3->setTextColor (Color32 ::RED);
3304
+ label3->enableOutline (Color32 ::BLUE);
3305
3305
label3->enableUnderline ();
3306
3306
label3->enableStrikethrough ();
3307
3307
addChild (label3);
@@ -3311,8 +3311,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3311
3311
ttfConf.outlineSize = 2 ;
3312
3312
auto label4 = Label::createWithTTF (ttfConf, " Outline2" , TextHAlignment::CENTER, s.width );
3313
3313
label4->setPosition (Vec2 (s.width / 2 , s.height * 0.36 ));
3314
- label4->setTextColor (Color4B ::RED);
3315
- label4->enableOutline (Color4B ::BLUE, 2 );
3314
+ label4->setTextColor (Color32 ::RED);
3315
+ label4->enableOutline (Color32 ::BLUE, 2 );
3316
3316
label4->enableUnderline ();
3317
3317
label4->enableStrikethrough ();
3318
3318
addChild (label4);
@@ -3328,29 +3328,29 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
3328
3328
Label* label[count];
3329
3329
3330
3330
label[0 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::TOP\n using setTextColor(255, 0, 255, 100)" , font, 14 , Vec2::ZERO, TextHAlignment::LEFT, TextVAlignment::TOP);
3331
- label[0 ]->setTextColor (Color4B (255 , 0 , 255 , 100 ));
3332
- label[0 ]->enableGlow (Color4B ::BLUE);
3331
+ label[0 ]->setTextColor (Color32 (255 , 0 , 255 , 100 ));
3332
+ label[0 ]->enableGlow (Color32 ::BLUE);
3333
3333
3334
3334
label[1 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::CENTER\n using setColor(*RED*)" , font, 14 , Vec2::ZERO, TextHAlignment::RIGHT, TextVAlignment::CENTER);
3335
3335
label[1 ]->setColor (Color3B::RED);
3336
3336
3337
3337
label[2 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::BOTTOM\n usingsetTextColor(*YELLOW)" , font, 14 ,
3338
3338
Vec2::ZERO, TextHAlignment::CENTER, TextVAlignment::BOTTOM);
3339
- label[2 ]->setTextColor (Color4B ::YELLOW);
3339
+ label[2 ]->setTextColor (Color32 ::YELLOW);
3340
3340
3341
3341
label[3 ] = Label::createWithBMFont (" fonts/bitmapFontTest5.fnt" , " BMFont\n with default color" , TextHAlignment::CENTER, s.width );
3342
3342
3343
3343
label[4 ] = Label::createWithBMFont (" fonts/bitmapFontTest5.fnt" , " BMFont\n using setTextColor(0, 255, 0, 100)" ,
3344
3344
TextHAlignment::CENTER, s.width );
3345
- label[4 ]->setTextColor (Color4B (0 , 255 , 0 , 100 ));
3345
+ label[4 ]->setTextColor (Color32 (0 , 255 , 0 , 100 ));
3346
3346
3347
3347
label[5 ] = Label::createWithTTF (ttfConfig, " TTF setColor(*BLUE*)\n with multiline 1\n and a much more longer multiline 2" ,
3348
3348
TextHAlignment::LEFT, s.width );
3349
3349
label[5 ]->setColor (Color3B::BLUE);
3350
3350
3351
3351
label[6 ] = Label::createWithTTF (" TTF setTextColor(*RED*)\n with multiline 1\n and a much more longer multiline 2" ,
3352
3352
font, 14 );
3353
- label[6 ]->setTextColor (Color4B ::RED);
3353
+ label[6 ]->setTextColor (Color32 ::RED);
3354
3354
3355
3355
for (int i = 0 ; i < count; i++)
3356
3356
{
0 commit comments