mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Auth error help message.
main menu message about auth
This commit is contained in:
parent
e18e2e1901
commit
d4225cfb45
@ -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
|
||||
}
|
||||
)
|
||||
)
|
||||
|
@ -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),
|
||||
},
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user