remove redundancy

This commit is contained in:
yuni 2024-05-14 22:41:02 +02:00
parent 68d218100c
commit ff610d4000
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ pub use bevy::math::{DVec3, DQuat};
pub use std::f32::consts::PI as PI32;
pub use std::f64::consts::PI;
pub const WINDOW_TITLE: &str = "OutFly";
pub const GAME_NAME: &str = "OutFly";
pub const CONF_FILE: &str = "outfly.toml";
pub const FONT: &str = "fonts/Yupiter-Regular.ttf";

View file

@ -156,7 +156,7 @@ fn setup(
window.cursor.grab_mode = CursorGrabMode::Locked;
window.cursor.visible = false;
window.mode = opt.window_mode_initial;
window.title = common::WINDOW_TITLE.to_string();
window.title = common::GAME_NAME.to_string();
}
}

View file

@ -306,8 +306,8 @@ pub fn setup(
TextBundle {
text: Text {
sections: vec![
TextSection::new("OutFly ".to_string()
+ settings.version.as_str(), style_version),
TextSection::new(format!("{} {}", GAME_NAME,
settings.version.as_str()), style_version),
],
justify: JustifyText::Right,
..default()