add: demonstration in menu
This commit is contained in:
1 parent
6ba695720a
commit
432c73b1cc
1 file changed
+22
@@ -98,4 +98,26 @@ fn setup(mut commands: Commands, assets: Res<AssetServer>){
|
|||||||
TextShadow::default(),
|
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(),
|
||||||
|
)],
|
||||||
|
));
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user