chore(examples): cargo fmt & co
This commit is contained in:
parent
68bb7ed4cc
commit
d00ac48642
|
@ -3,13 +3,15 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
|
|
|
@ -3,13 +3,15 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
|
|
|
@ -3,14 +3,16 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
"SOME GAME TITLE !!",
|
"SOME GAME TITLE !!",
|
||||||
|
|
|
@ -3,14 +3,16 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
"SOME GAME TITLE !!",
|
"SOME GAME TITLE !!",
|
||||||
|
|
|
@ -3,14 +3,16 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
"SOME GAME TITLE !!",
|
"SOME GAME TITLE !!",
|
||||||
|
|
Binary file not shown.
|
@ -3,14 +3,16 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
"SOME GAME TITLE !!",
|
"SOME GAME TITLE !!",
|
||||||
|
|
|
@ -3,13 +3,15 @@ use bevy_gltf_worlflow_examples_common::{AppState, InMainMenu};
|
||||||
|
|
||||||
pub fn setup_main_menu(mut commands: Commands) {
|
pub fn setup_main_menu(mut commands: Commands) {
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
Camera2dBundle{
|
Camera2dBundle {
|
||||||
camera: Camera {
|
camera: Camera {
|
||||||
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
order: 102, // needed because of this: https://github.com/jakobhellermann/bevy_editor_pls/blob/crates/bevy_editor_pls_default_windows/src/cameras/mod.rs#L213C9-L213C28
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}, InMainMenu));
|
},
|
||||||
|
InMainMenu,
|
||||||
|
));
|
||||||
|
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
TextBundle::from_section(
|
TextBundle::from_section(
|
||||||
|
|
Loading…
Reference in New Issue