public static void StartGame(StartGame P) { SelectScene.StartGameButton.Enabled = true; switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured when trying start the game."); break; case 1: SceneFunctions.ShowMessage("Starting the Game is currently disabled."); break; case 2: SceneFunctions.ShowMessage("The character you selected does not exist.\n Contact a GM for assistance."); break; case 3: SceneFunctions.ShowMessage("Server is not ready for Characters to play."); break; case 4: SelectScene.Scene.Enabled = false; GameScene.Scene.Enabled = true; MirScene.ActiveScene.Visible = false; GameScene.Scene.Visible = true; MirScene.ActiveScene = GameScene.Scene; break; } }
public static void LoginBanned(LoginBanned P) { LoginDialog.LoginButton.Enabled = true; SceneFunctions.ShowMessage(string.Format("This account is banned.\n Reason{0}\n ExpiaryDate:{1}", P.Reason, P.ExpiryDate)); }
public static void ChangePasswordBanned(ChangePasswordBanned P) { ChangePasswordDialog.ConfirmButton.Enabled = true; SceneFunctions.ShowMessage(string.Format("This account is banned.\n Reason{0}\n ExpiaryDate:{1}", P.Reason, P.ExpiryDate)); ChangePasswordDialog.Clear(); }
public static void ChangePassword(ChangePassword P) { ChangePasswordDialog.ConfirmButton.Enabled = true; switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured whilst Changing Password."); ChangePasswordDialog.Hide(); ChangePasswordDialog.Clear(); LoginDialog.Show(); break; case 1: SceneFunctions.ShowMessage("Password Changing is currently disabled."); ChangePasswordDialog.Hide(); ChangePasswordDialog.Clear(); LoginDialog.Show(); break; case 2: SceneFunctions.ShowMessage("Your AccountID is not acceptable."); ChangePasswordDialog.AccountIDTextBox.SetFocus(); break; case 3: SceneFunctions.ShowMessage("The current Password is not acceptable."); ChangePasswordDialog.CurrentPasswordTextBox.SetFocus(); break; case 4: SceneFunctions.ShowMessage("Your new Password is not acceptable."); ChangePasswordDialog.NewPassword1TextBox.SetFocus(); break; case 5: SceneFunctions.ShowMessage("The AccountID does not exist."); ChangePasswordDialog.AccountIDTextBox.SetFocus(); break; case 6: SceneFunctions.ShowMessage("Incorrect Password and AccountID combination."); ChangePasswordDialog.CurrentPasswordTextBox.SetFocus(); ChangePasswordDialog.CurrentPasswordTextBox.Text = string.Empty; break; case 7: SceneFunctions.ShowMessage("Your password was changed successfully."); ChangePasswordDialog.Hide(); ChangePasswordDialog.Clear(); LoginDialog.Show(); break; #if DEBUG default: throw new NotImplementedException(); #endif } }
public static void NewCharacterSuccess(NewCharacterSuccess P) { NewCharacterDialog.CharacterNameTextBox.Enabled = true; NewCharacterDialog.ConfirmButton.Enabled = true; NewCharacterDialog.Hide(); SceneFunctions.ShowMessage("Your character was created successfully."); SelectScene.CharacterList.Insert(0, P.CharInfo); SelectScene.SelectedIndex = 0; SelectScene.UpdateSelectButtons(); }
public static void NewCharacter(NewCharacter P) { NewCharacterDialog.CharacterNameTextBox.Enabled = true; NewCharacterDialog.ConfirmButton.Enabled = true; switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured when trying create your character."); break; case 1: NewCharacterDialog.Hide(); SceneFunctions.ShowMessage("Creating new characters is currently disabled."); break; case 2: SceneFunctions.ShowMessage("Your Character Name is not acceptable."); NewCharacterDialog.CharacterNameTextBox.SetFocus(); break; case 3: SceneFunctions.ShowMessage("The gender you selected does not exist.\n Contact a GM for assistance."); break; case 4: SceneFunctions.ShowMessage("The class you selected does not exist.\n Contact a GM for assistance."); break; case 5: SceneFunctions.ShowMessage("You cannot make anymore then " + Globals.MaxCharacterCount + " Characters."); NewCharacterDialog.Hide(); break; case 6: SceneFunctions.ShowMessage("A Character with this name already exists."); NewCharacterDialog.CharacterNameTextBox.SetFocus(); break; #if DEBUG default: throw new NotImplementedException(); #endif } }
public static void Login(Login P) { LoginDialog.LoginButton.Enabled = true; switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured when trying to Log in."); LoginDialog.Clear(); break; case 1: SceneFunctions.ShowMessage("Logging in is currently disabled."); LoginDialog.Clear(); break; case 2: SceneFunctions.ShowMessage("Your AccountID is not acceptable."); LoginDialog.AccountIDTextBox.SetFocus(); break; case 3: SceneFunctions.ShowMessage("Your Password is not acceptable."); LoginDialog.PasswordTextBox.SetFocus(); break; case 4: SceneFunctions.ShowMessage("The AccountID does not exist."); LoginDialog.AccountIDTextBox.SetFocus(); break; case 5: SceneFunctions.ShowMessage("Incorrect Password and AccountID combination."); LoginDialog.PasswordTextBox.Text = string.Empty; LoginDialog.PasswordTextBox.SetFocus(); break; #if DEBUG default: throw new NotImplementedException(); #endif } }
public static void DeleteCharacter(DeleteCharacter P) { switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured when trying delete your character."); break; case 1: SceneFunctions.ShowMessage("Deleting characters is currently disabled."); break; case 2: SceneFunctions.ShowMessage("The character you selected does not exist.\n Contact a GM for assistance."); break; case 3: for (int I = 0; I < SelectScene.CharacterList.Count; I++) { if (SelectScene.CharacterList[I].Index == SceneFunctions.DeleteIndex) { SelectScene.CharacterList.RemoveAt(I); break; } } SelectScene.UpdateSelectButtons(); SceneFunctions.ShowMessage("Your character was deleted successfully."); break; #if DEBUG default: throw new NotImplementedException(); #endif } }
public static void NewAccount(NewAccount P) { NewAccountDialog.ConfirmButton.Enabled = true; switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured whilst creating the account."); NewAccountDialog.Hide(); NewAccountDialog.Clear(); LoginDialog.Show(); break; case 1: SceneFunctions.ShowMessage("Account creation is currently disabled."); NewAccountDialog.Hide(); NewAccountDialog.Clear(); LoginDialog.Show(); break; case 2: SceneFunctions.ShowMessage("Your AccountID is not acceptable."); NewAccountDialog.AccountIDTextBox.SetFocus(); break; case 3: SceneFunctions.ShowMessage("Your Password is not acceptable."); NewAccountDialog.Password1TextBox.SetFocus(); break; case 4: SceneFunctions.ShowMessage("Your E-Mail Address is not acceptable."); NewAccountDialog.EMailTextBox.SetFocus(); break; case 5: SceneFunctions.ShowMessage("Your User Name is not acceptable."); NewAccountDialog.UserNameTextBox.SetFocus(); break; case 6: SceneFunctions.ShowMessage("Your Secret Question is not acceptable."); NewAccountDialog.QuestionTextBox.SetFocus(); break; case 7: SceneFunctions.ShowMessage("Your Secret Answer is not acceptable."); NewAccountDialog.AnswerTextBox.SetFocus(); break; case 8: SceneFunctions.ShowMessage("An Account with this ID already exists."); NewAccountDialog.AccountIDTextBox.SetFocus(); NewAccountDialog.AccountIDTextBox.Text = string.Empty; break; case 9: SceneFunctions.ShowMessage("Your account was created successfully."); NewAccountDialog.Hide(); NewAccountDialog.Clear(); LoginDialog.Show(); break; #if DEBUG default: throw new NotImplementedException(); #endif } }
public static void StartGameBanned(StartGameBanned P) { SelectScene.StartGameButton.Enabled = true; SceneFunctions.ShowMessage(string.Format("This character is banned.\n Reason{0}\n ExpiaryDate:{1}", P.Reason, P.ExpiryDate)); }
public static void StartGameDelay(StartGameDelay P) { SelectScene.StartGameButton.Enabled = true; SceneFunctions.ShowMessage(string.Format("You cannot start the game for another {0} seconds.", P.Seconds)); }