|
|
|
@ -1177,6 +1177,7 @@ fn set_endgame(
|
|
|
|
mut commands: Commands,
|
|
|
|
mut commands: Commands,
|
|
|
|
tweaks_file: Res<tweak::GameTweaks>,
|
|
|
|
tweaks_file: Res<tweak::GameTweaks>,
|
|
|
|
tweaks: Res<Assets<tweak::Tweaks>>,
|
|
|
|
tweaks: Res<Assets<tweak::Tweaks>>,
|
|
|
|
|
|
|
|
ui_font: Res<ui::UiFont>,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
let tweak = tweaks.get(tweaks_file.handle.clone()).expect("Load tweaks");
|
|
|
|
let tweak = tweaks.get(tweaks_file.handle.clone()).expect("Load tweaks");
|
|
|
|
let button_handle = tweak.get_handle::<Image>("buttons_image_resting").unwrap();
|
|
|
|
let button_handle = tweak.get_handle::<Image>("buttons_image_resting").unwrap();
|
|
|
|
@ -1202,11 +1203,11 @@ fn set_endgame(
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.with_children(|parent| {
|
|
|
|
.with_children(|parent| {
|
|
|
|
parent.spawn(TextBundle::from_section(
|
|
|
|
parent.spawn(TextBundle::from_section(
|
|
|
|
"S C O R E",
|
|
|
|
"SCORE",
|
|
|
|
TextStyle {
|
|
|
|
TextStyle {
|
|
|
|
font_size: 48.0,
|
|
|
|
font_size: 48.0,
|
|
|
|
color: Color::ORANGE_RED,
|
|
|
|
color: Color::ORANGE_RED,
|
|
|
|
..default()
|
|
|
|
font: ui_font.handle.clone(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
parent.spawn(TextBundle::from_section(
|
|
|
|
parent.spawn(TextBundle::from_section(
|
|
|
|
@ -1214,7 +1215,7 @@ fn set_endgame(
|
|
|
|
TextStyle {
|
|
|
|
TextStyle {
|
|
|
|
font_size: 32.0,
|
|
|
|
font_size: 32.0,
|
|
|
|
color: Color::BLUE,
|
|
|
|
color: Color::BLUE,
|
|
|
|
..default()
|
|
|
|
font: ui_font.handle.clone(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
parent.spawn(TextBundle::from_section(
|
|
|
|
parent.spawn(TextBundle::from_section(
|
|
|
|
@ -1222,7 +1223,7 @@ fn set_endgame(
|
|
|
|
TextStyle {
|
|
|
|
TextStyle {
|
|
|
|
font_size: 32.0,
|
|
|
|
font_size: 32.0,
|
|
|
|
color: Color::RED,
|
|
|
|
color: Color::RED,
|
|
|
|
..default()
|
|
|
|
font: ui_font.handle.clone(),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
|
|
|