diff --git a/src/common.rs b/src/common.rs index 3ff15a0..53195f7 100644 --- a/src/common.rs +++ b/src/common.rs @@ -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"; diff --git a/src/main.rs b/src/main.rs index 8d64edb..d85489f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(); } } diff --git a/src/menu.rs b/src/menu.rs index 6849520..d750d46 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -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()