From d4225cfb456dd7d13f50df50d741dba905e086aa Mon Sep 17 00:00:00 2001 From: Acrimon Date: Wed, 8 Jan 2020 23:45:10 +0100 Subject: [PATCH] Auth error help message. main menu message about auth --- assets/voxygen/i18n/en.ron | 13 ++++++++----- voxygen/src/menu/main/mod.rs | 6 ++++-- voxygen/src/menu/main/ui.rs | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/assets/voxygen/i18n/en.ron b/assets/voxygen/i18n/en.ron index 96d7344654..459dca3398 100644 --- a/assets/voxygen/i18n/en.ron +++ b/assets/voxygen/i18n/en.ron @@ -113,11 +113,14 @@ Thanks for taking the time to read this notice, we hope you enjoy the game! // Login process description "main.login_process": r#"Information on the Login Process: -Put in any username. No Account needed yet. - -Character names and appearances will be saved locally. +If you are having issues signing in: -Levels/Items are not saved yet."#, +Please note that you now need an account +to play on auth-enabled servers. + +You can create an account over at + +https://account.veloren.net."#, /// End Main screen section @@ -358,4 +361,4 @@ Willpower "esc_menu.quit_game": "Quit Game", /// End Escape Menu Section } -) \ No newline at end of file +) diff --git a/voxygen/src/menu/main/mod.rs b/voxygen/src/menu/main/mod.rs index 0d44cb8c16..7a9c445b90 100644 --- a/voxygen/src/menu/main/mod.rs +++ b/voxygen/src/menu/main/mod.rs @@ -30,6 +30,8 @@ impl MainMenuState { const DEFAULT_PORT: u16 = 14004; +static LOGIN_FAILED_MSG: &str = "If you are having issues signing in. Please note that you now need an account to play on auth-enabled servers.\nYou can create an account over at https://account.veloren.net."; + impl PlayState for MainMenuState { fn play(&mut self, _: Direction, global_state: &mut GlobalState) -> PlayStateResult { // Set up an fps clock. @@ -104,8 +106,8 @@ impl PlayState for MainMenuState { client::AuthClientError::JsonError(e) => { format!("Fatal error: {}", e) }, - client::AuthClientError::RequestError(e) => { - format!("Failed to send request to Auth server: {}", e) + client::AuthClientError::RequestError(_) => { + LOGIN_FAILED_MSG.into() }, client::AuthClientError::ServerError(_, e) => format!("{}", e), }, diff --git a/voxygen/src/menu/main/ui.rs b/voxygen/src/menu/main/ui.rs index f56c8c309e..b323be9169 100644 --- a/voxygen/src/menu/main/ui.rs +++ b/voxygen/src/menu/main/ui.rs @@ -459,7 +459,7 @@ impl MainMenuUi { }; } // Info Window - Rectangle::fill_with([550.0, 200.0], color::BLACK) + Rectangle::fill_with([550.0, 400.0], color::BLACK) .top_left_with_margins_on(ui_widgets.window, 40.0, 40.0) .color(Color::Rgba(0.0, 0.0, 0.0, 0.95)) .set(self.ids.info_frame, ui_widgets);