@@ -368,8 +368,8 @@ mod ui {
368368 MenuButton :: Play ,
369369 ) )
370370 . with_children ( |parent| {
371- parent. spawn ( TextBundle :: from_section (
372- "Play" ,
371+ parent. spawn ( (
372+ Text :: new ( "Play" ) ,
373373 TextStyle {
374374 font_size : 33.0 ,
375375 color : Color :: srgb ( 0.9 , 0.9 , 0.9 ) ,
@@ -400,8 +400,8 @@ mod ui {
400400 MenuButton :: Tutorial ,
401401 ) )
402402 . with_children ( |parent| {
403- parent. spawn ( TextBundle :: from_section (
404- "Tutorial" ,
403+ parent. spawn ( (
404+ Text :: new ( "Tutorial" ) ,
405405 TextStyle {
406406 font_size : 33.0 ,
407407 color : Color :: srgb ( 0.9 , 0.9 , 0.9 ) ,
@@ -498,8 +498,8 @@ mod ui {
498498 MenuButton :: Play ,
499499 ) )
500500 . with_children ( |parent| {
501- parent. spawn ( TextBundle :: from_section (
502- "Paused" ,
501+ parent. spawn ( (
502+ Text :: new ( "Paused" ) ,
503503 TextStyle {
504504 font_size : 33.0 ,
505505 color : Color :: srgb ( 0.9 , 0.9 , 0.9 ) ,
@@ -530,8 +530,8 @@ mod ui {
530530 } ,
531531 ) )
532532 . with_children ( |parent| {
533- parent. spawn ( TextBundle :: from_section (
534- "TURBO MODE" ,
533+ parent. spawn ( (
534+ Text :: new ( "TURBO MODE" ) ,
535535 TextStyle {
536536 font_size : 33.0 ,
537537 color : Color :: srgb ( 0.9 , 0.3 , 0.1 ) ,
@@ -572,34 +572,34 @@ mod ui {
572572 } ,
573573 ) )
574574 . with_children ( |parent| {
575- parent. spawn ( TextBundle :: from_section (
576- "Move the bevy logo with the arrow keys" ,
575+ parent. spawn ( (
576+ Text :: new ( "Move the bevy logo with the arrow keys" ) ,
577577 TextStyle {
578578 font_size : 33.0 ,
579579 color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
580580 ..default ( )
581581 } ,
582582 ) ) ;
583- parent. spawn ( TextBundle :: from_section (
584- "Press T to enter TURBO MODE" ,
583+ parent. spawn ( (
584+ Text :: new ( "Press T to enter TURBO MODE" ) ,
585585 TextStyle {
586586 font_size : 33.0 ,
587587 color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
588588 ..default ( )
589589 } ,
590590 ) ) ;
591591
592- parent. spawn ( TextBundle :: from_section (
593- "Press SPACE to pause" ,
592+ parent. spawn ( (
593+ Text :: new ( "Press SPACE to pause" ) ,
594594 TextStyle {
595595 font_size : 33.0 ,
596596 color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
597597 ..default ( )
598598 } ,
599599 ) ) ;
600600
601- parent. spawn ( TextBundle :: from_section (
602- "Press ESCAPE to return to the menu" ,
601+ parent. spawn ( (
602+ Text :: new ( "Press ESCAPE to return to the menu" ) ,
603603 TextStyle {
604604 font_size : 33.0 ,
605605 color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
@@ -629,17 +629,17 @@ mod ui {
629629 } ,
630630 ) )
631631 . with_children ( |parent| {
632- parent. spawn ( TextBundle :: from_section (
633- "Press SPACE to resume" ,
632+ parent. spawn ( (
633+ Text :: new ( "Press SPACE to resume" ) ,
634634 TextStyle {
635635 font_size : 33.0 ,
636636 color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
637637 ..default ( )
638638 } ,
639639 ) ) ;
640640
641- parent. spawn ( TextBundle :: from_section (
642- "Press ESCAPE to return to the menu" ,
641+ parent. spawn ( (
642+ Text :: new ( "Press ESCAPE to return to the menu" ) ,
643643 TextStyle {
644644 font_size : 33.0 ,
645645 color : Color :: srgb ( 0.3 , 0.3 , 0.7 ) ,
0 commit comments