add: demonstration in menu

This commit is contained in:
vova-rs committed 2026-08-21 22:37:32 +03:00
1 parent 6ba695720a
commit 432c73b1cc
1 file changed
+22
+22
View File
@@ -98,4 +98,26 @@ fn setup(mut commands: Commands, assets: Res<AssetServer>){
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(),
)],
));
}