Auth error help message.

main menu message about auth
This commit is contained in:
Acrimon 2020-01-08 23:45:10 +01:00 committed by Marcel Märtens
parent e18e2e1901
commit d4225cfb45
3 changed files with 13 additions and 8 deletions

View File

@ -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
}
)
)

View File

@ -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),
},

View File

@ -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);