@@ -3316,8 +3316,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
33163316 // Glow SDF (GPU)
33173317 auto label1 = Label::createWithTTF (ttfConf, " Glow1" , TextHAlignment::CENTER, s.width );
33183318 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);
33213321 label1->enableUnderline ();
33223322 label1->enableStrikethrough ();
33233323 addChild (label1);
@@ -3326,8 +3326,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
33263326 ttfConf.distanceFieldEnabled = false ;
33273327 auto label2 = Label::createWithTTF (ttfConf, " Glow2" , TextHAlignment::CENTER, s.width );
33283328 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);
33313331 label2->enableUnderline ();
33323332 label2->enableStrikethrough ();
33333333 addChild (label2);
@@ -3337,8 +3337,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
33373337 ttfConf.outlineSize = 2 ;
33383338 auto label3 = Label::createWithTTF (ttfConf, " Outline1" , TextHAlignment::CENTER, s.width );
33393339 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);
33423342 label3->enableUnderline ();
33433343 label3->enableStrikethrough ();
33443344 addChild (label3);
@@ -3348,8 +3348,8 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
33483348 ttfConf.outlineSize = 2 ;
33493349 auto label4 = Label::createWithTTF (ttfConf, " Outline2" , TextHAlignment::CENTER, s.width );
33503350 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 );
33533353 label4->enableUnderline ();
33543354 label4->enableStrikethrough ();
33553355 addChild (label4);
@@ -3365,29 +3365,29 @@ LabelUnderlineStrikethroughMultiline::LabelUnderlineStrikethroughMultiline()
33653365 Label* labels[count];
33663366
33673367 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);
33703370
33713371 labels[1 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::CENTER\n using setColor(*RED*)" , font, 14 , Vec2::ZERO, TextHAlignment::RIGHT, TextVAlignment::CENTER);
33723372 labels[1 ]->setColor (Color3B::RED);
33733373
33743374 labels[2 ] = Label::createWithSystemFont (" SystemFont TextVAlignment::BOTTOM\n usingsetTextColor(*YELLOW)" , font, 14 ,
33753375 Vec2::ZERO, TextHAlignment::CENTER, TextVAlignment::BOTTOM);
3376- labels[2 ]->setTextColor (Color4B ::YELLOW);
3376+ labels[2 ]->setTextColor (Color32 ::YELLOW);
33773377
33783378 labels[3 ] = Label::createWithBMFont (" fonts/bitmapFontTest5.fnt" , " BMFont\n with default color" , TextHAlignment::CENTER, s.width );
33793379
33803380 labels[4 ] = Label::createWithBMFont (" fonts/bitmapFontTest5.fnt" , " BMFont\n using setTextColor(0, 255, 0, 100)" ,
33813381 TextHAlignment::CENTER, s.width );
3382- labels[4 ]->setTextColor (Color4B (0 , 255 , 0 , 100 ));
3382+ labels[4 ]->setTextColor (Color32 (0 , 255 , 0 , 100 ));
33833383
33843384 labels[5 ] = Label::createWithTTF (ttfConfig, " TTF setColor(*BLUE*)\n with multiline 1\n and a much more longer multiline 2" ,
33853385 TextHAlignment::LEFT, s.width );
33863386 labels[5 ]->setColor (Color3B::BLUE);
33873387
33883388 labels[6 ] = Label::createWithTTF (" TTF setTextColor(*RED*)\n with multiline 1\n and a much more longer multiline 2" ,
33893389 font, 14 );
3390- labels[6 ]->setTextColor (Color4B ::RED);
3390+ labels[6 ]->setTextColor (Color32 ::RED);
33913391
33923392 for (int i = 0 ; i < count; i++)
33933393 {
0 commit comments