generated from tipragot/rust
This commit is contained in:
parent
ba953a4fde
commit
ced2db583a
|
@ -33,7 +33,6 @@ struct MenuEntity;
|
||||||
|
|
||||||
/// Display the UI of the menu to host a game or join one.
|
/// Display the UI of the menu to host a game or join one.
|
||||||
fn menu_ui(mut commands: Commands, asset_server: Res<AssetServer>) {
|
fn menu_ui(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||||
commands.spawn(Camera2dBundle::default());
|
|
||||||
|
|
||||||
commands
|
commands
|
||||||
.spawn(NodeBundle {
|
.spawn(NodeBundle {
|
||||||
|
@ -237,7 +236,7 @@ fn main_node(main_node: &mut ChildBuilder<'_, '_, '_>, asset_server: &Res<AssetS
|
||||||
})
|
})
|
||||||
.insert(MenuEntity);
|
.insert(MenuEntity);
|
||||||
create_button(
|
create_button(
|
||||||
CurrentScene::Lobby,
|
CurrentScene::Game,
|
||||||
join,
|
join,
|
||||||
HoveredTexture {
|
HoveredTexture {
|
||||||
texture: asset_server.load("join.png"),
|
texture: asset_server.load("join.png"),
|
||||||
|
|
Loading…
Reference in a new issue