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::f32::consts::PI as PI32;
|
||||||
pub use std::f64::consts::PI;
|
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 CONF_FILE: &str = "outfly.toml";
|
||||||
pub const FONT: &str = "fonts/Yupiter-Regular.ttf";
|
pub const FONT: &str = "fonts/Yupiter-Regular.ttf";
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ fn setup(
|
||||||
window.cursor.grab_mode = CursorGrabMode::Locked;
|
window.cursor.grab_mode = CursorGrabMode::Locked;
|
||||||
window.cursor.visible = false;
|
window.cursor.visible = false;
|
||||||
window.mode = opt.window_mode_initial;
|
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 {
|
TextBundle {
|
||||||
text: Text {
|
text: Text {
|
||||||
sections: vec![
|
sections: vec![
|
||||||
TextSection::new("OutFly ".to_string()
|
TextSection::new(format!("{} {}", GAME_NAME,
|
||||||
+ settings.version.as_str(), style_version),
|
settings.version.as_str()), style_version),
|
||||||
],
|
],
|
||||||
justify: JustifyText::Right,
|
justify: JustifyText::Right,
|
||||||
..default()
|
..default()
|
||||||
|
|
Loading…
Reference in a new issue