remove redundancy
This commit is contained in:
parent
68d218100c
commit
ff610d4000
|
@ -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";
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue