Fixed main menu layout
This commit is contained in:
parent
22092ce3cc
commit
70a12b984c
1 changed files with 6 additions and 7 deletions
|
|
@ -16,9 +16,8 @@ pub fn setup_menu(mut commands: Commands) {
|
||||||
TextLayout::new_with_justify(Justify::Center),
|
TextLayout::new_with_justify(Justify::Center),
|
||||||
Menu,
|
Menu,
|
||||||
Node {
|
Node {
|
||||||
position_type: PositionType::Absolute,
|
align_self: AlignSelf::Center,
|
||||||
top: percent(25),
|
justify_self: JustifySelf::Center,
|
||||||
right: percent(33),
|
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
|
@ -26,15 +25,15 @@ pub fn setup_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Button,
|
Button,
|
||||||
Node {
|
Node {
|
||||||
width: px(150),
|
align_self: AlignSelf::Center,
|
||||||
height: px(65),
|
justify_self: JustifySelf::Center,
|
||||||
border: UiRect::all(px(5)),
|
top: px(128),
|
||||||
justify_content: JustifyContent::Center,
|
justify_content: JustifyContent::Center,
|
||||||
align_items: AlignItems::Center,
|
align_items: AlignItems::Center,
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
Menu,
|
Menu,
|
||||||
children![(Text::new("Igron"))],
|
children![(Text::new("Play"))],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue