@@ -368,8 +368,8 @@ mod ui {
368
368
MenuButton :: Play ,
369
369
) )
370
370
. with_children ( |parent| {
371
- parent. spawn ( TextBundle :: from_section (
372
- "Play" ,
371
+ parent. spawn ( (
372
+ Text :: new ( "Play" ) ,
373
373
TextStyle {
374
374
font_size : 33.0 ,
375
375
color : Color :: srgb ( 0.9 , 0.9 , 0.9 ) ,
@@ -400,8 +400,8 @@ mod ui {
400
400
MenuButton :: Tutorial ,
401
401
) )
402
402
. with_children ( |parent| {
403
- parent. spawn ( TextBundle :: from_section (
404
- "Tutorial" ,
403
+ parent. spawn ( (
404
+ Text :: new ( "Tutorial" ) ,
405
405
TextStyle {
406
406
font_size : 33.0 ,
407
407
color : Color :: srgb ( 0.9 , 0.9 , 0.9 ) ,
@@ -501,8 +501,8 @@ mod ui {
501
501
MenuButton :: Play ,
502
502
) )
503
503
. with_children ( |parent| {
504
- parent. spawn ( TextBundle :: from_section (
505
- "Paused" ,
504
+ parent. spawn ( (
505
+ Text :: new ( "Paused" ) ,
506
506
TextStyle {
507
507
font_size : 33.0 ,
508
508
color : Color :: srgb ( 0.9 , 0.9 , 0.9 ) ,
@@ -533,8 +533,8 @@ mod ui {
533
533
} ,
534
534
) )
535
535
. with_children ( |parent| {
536
- parent. spawn ( TextBundle :: from_section (
537
- "TURBO MODE" ,
536
+ parent. spawn ( (
537
+ Text :: new ( "TURBO MODE" ) ,
538
538
TextStyle {
539
539
font_size : 33.0 ,
540
540
color : Color :: srgb ( 0.9 , 0.3 , 0.1 ) ,
@@ -575,34 +575,34 @@ mod ui {
575
575
} ,
576
576
) )
577
577
. with_children ( |parent| {
578
- parent. spawn ( TextBundle :: from_section (
579
- "Move the bevy logo with the arrow keys" ,
578
+ parent. spawn ( (
579
+ Text :: new ( "Move the bevy logo with the arrow keys" ) ,
580
580
TextStyle {
581
581
font_size : 33.0 ,
582
582
color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
583
583
..default ( )
584
584
} ,
585
585
) ) ;
586
- parent. spawn ( TextBundle :: from_section (
587
- "Press T to enter TURBO MODE" ,
586
+ parent. spawn ( (
587
+ Text :: new ( "Press T to enter TURBO MODE" ) ,
588
588
TextStyle {
589
589
font_size : 33.0 ,
590
590
color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
591
591
..default ( )
592
592
} ,
593
593
) ) ;
594
594
595
- parent. spawn ( TextBundle :: from_section (
596
- "Press SPACE to pause" ,
595
+ parent. spawn ( (
596
+ Text :: new ( "Press SPACE to pause" ) ,
597
597
TextStyle {
598
598
font_size : 33.0 ,
599
599
color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
600
600
..default ( )
601
601
} ,
602
602
) ) ;
603
603
604
- parent. spawn ( TextBundle :: from_section (
605
- "Press ESCAPE to return to the menu" ,
604
+ parent. spawn ( (
605
+ Text :: new ( "Press ESCAPE to return to the menu" ) ,
606
606
TextStyle {
607
607
font_size : 33.0 ,
608
608
color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
@@ -632,17 +632,17 @@ mod ui {
632
632
} ,
633
633
) )
634
634
. with_children ( |parent| {
635
- parent. spawn ( TextBundle :: from_section (
636
- "Press SPACE to resume" ,
635
+ parent. spawn ( (
636
+ Text :: new ( "Press SPACE to resume" ) ,
637
637
TextStyle {
638
638
font_size : 33.0 ,
639
639
color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
640
640
..default ( )
641
641
} ,
642
642
) ) ;
643
643
644
- parent. spawn ( TextBundle :: from_section (
645
- "Press ESCAPE to return to the menu" ,
644
+ parent. spawn ( (
645
+ Text :: new ( "Press ESCAPE to return to the menu" ) ,
646
646
TextStyle {
647
647
font_size : 33.0 ,
648
648
color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
0 commit comments