fn infotext_system(mut commands: Commands, asset_server: Res<AssetServer>) {
    commands.spawn_bundle(UiCameraBundle::default());
    commands.spawn_bundle(TextBundle {
        style: Style {
            align_self: AlignSelf::FlexEnd,
            ..Default::default()
        },
        text: Text::with_section(
            "Nothing to see in this window! Check the console output!",
            TextStyle {
                font: asset_server.load("fonts/FiraSans-Bold.ttf"),
                font_size: 50.0,
                color: Color::WHITE,
            },
            Default::default(),
        ),
        ..Default::default()
    });
}
// This is only necessary for the info message in the UI. See examples/ui/text.rs for a standalone
// text example.
This is only necessary for the info message in the UI. See examples/ui/text.rs for a standalone
text example.
This is only necessary for the info message in the UI . See examples / ui / text . rs for a standalone text example .
fn infotext_system(mut commands: Commands, asset_server: Res<AssetServer>) {
    commands.spawn_bundle(UiCameraBundle::default());
    commands.spawn_bundle(TextBundle {
        style: Style {
            align_self: AlignSelf::FlexEnd,
            ..Default::default()
        },
        text: Text::with_section(
            "Nothing to see in this window! Check the console output!",
            TextStyle {
                font: asset_server.load("fonts/FiraSans-Bold.ttf"),
                font_size: 50.0,
                color: Color::WHITE,
            },
            Default::default(),
        ),
        ..Default::default()
    });
}
fn infotext_system ( mut commands : Commands , asset_server : Res < AssetServer > ) { commands . spawn_bundle ( UiCameraBundle :: default ( ) ) ; commands . spawn_bundle ( TextBundle { style : Style { align_self : AlignSelf :: FlexEnd , .. Default :: default ( ) } , text : Text :: with_section ( " " , TextStyle { font : asset_server . load ( " " ) , font_size : 50.0 , color : Color :: WHITE , } , Default :: default ( ) , ) , .. Default :: default ( ) } ) ; }
This is only necessary for the info message in the UI.
This is only necessary for the info message in the UI .
commands
Commands
asset_server
Res<AssetServer>
commands
Commands
asset_server
Res<AssetServer>