diff --git a/src/ui_menu/mod.rs b/src/ui_menu/mod.rs index 02a51e8..cb9dd71 100644 --- a/src/ui_menu/mod.rs +++ b/src/ui_menu/mod.rs @@ -98,4 +98,26 @@ fn setup(mut commands: Commands, assets: Res){ TextShadow::default(), )], )); + + commands.spawn(( + Node { + width: Val::Percent(100.0), + height: Val::Percent(100.0), + flex_direction: FlexDirection::Column, + justify_content: JustifyContent::FlexEnd, + align_items: AlignItems::FlexEnd, + padding: UiRect::all(Val::Px(20.0)), + ..Default::default() + }, + children![( + Text::new("Press ESC to back"), + TextFont { + font: assets.load("fronts/IBMPlexMono-Medium.ttf"), + font_size: 22.0, + ..default() + }, + TextColor(Color::srgb(0.9, 0.9, 0.9)), + TextShadow::default(), + )], + )); }