コード例 #1
0
        private void NewCharacter(S.NewCharacter p)
        {
            _character.OKButton.Enabled = true;

            switch (p.Result)
            {
            case 0:
                MirMessageBox.Show(GameLanguage.CreatingCharactersDisabled);
                _character.Dispose();
                break;

            case 1:
                MirMessageBox.Show(GameLanguage.InvalidCharacterName);
                _character.NameTextBox.SetFocus();
                break;

            case 2:
                MirMessageBox.Show("The gender you selected does not exist.\n Contact a GM for assistance.");
                break;

            case 3:
                MirMessageBox.Show(GameLanguage.NoClass);
                break;

            case 4:
                MirMessageBox.Show(string.Format(GameLanguage.ToManyCharacters, Globals.MaxCharacterCount));
                _character.Dispose();
                break;

            case 5:
                MirMessageBox.Show(GameLanguage.CharacterNameExists);
                _character.NameTextBox.SetFocus();
                break;
            }
        }
コード例 #2
0
        public static void NewCharacter(S.NewCharacter p)
        {
            switch (p.Result)
            {
            case 0:
                CharSelManager.ShowMessageBox("Character creation is disabled.");
                break;

            case 1:
                CharSelManager.ShowMessageBox("Invalid character name.");
                break;

            case 3:
                CharSelManager.ShowMessageBox("Selected role not supported.");
                break;

            case 4:
                CharSelManager.ShowMessageBox("Maximum characters on account reached.");
                break;

            case 5:
                CharSelManager.ShowMessageBox("Name already exists.");
                break;

            default:
                break;
            }
        }
コード例 #3
0
        private void NewCharacter(S.NewCharacter p)
        {
            _character.OKButton.Enabled = true;

            switch (p.Result)
            {
            case 0:
                MirMessageBox.Show("服务器暂时不允许创建新角色。");
                _character.Dispose();
                break;

            case 1:
                MirMessageBox.Show("角色名不可用。");
                _character.NameTextBox.SetFocus();
                break;

            case 2:
                MirMessageBox.Show("你选择的性别不存在.\n 请联系GM处理。");
                break;

            case 3:
                MirMessageBox.Show("你选择的职业不存在.\n 请联系GM处理。");
                break;

            case 4:
                MirMessageBox.Show("你不能创建超过" + Globals.MaxCharacterCount + "个角色。");
                _character.Dispose();
                break;

            case 5:
                MirMessageBox.Show("这个角色名已存在。");
                _character.NameTextBox.SetFocus();
                break;
            }
        }
コード例 #4
0
ファイル: SelectScene.cs プロジェクト: isoundy000/mir2-master
        private void NewCharacter(S.NewCharacter p)
        {
            _character.OKButton.Enabled = true;

            switch (p.Result)
            {
            case 0:
                MirMessageBox.Show("Creating new characters is currently disabled.");
                _character.Dispose();
                break;

            case 1:
                MirMessageBox.Show("Your Character Name is not acceptable.");
                _character.NameTextBox.SetFocus();
                break;

            case 2:
                MirMessageBox.Show("The gender you selected does not exist.\n Contact a GM for assistance.");
                break;

            case 3:
                MirMessageBox.Show("The class you selected does not exist.\n Contact a GM for assistance.");
                break;

            case 4:
                MirMessageBox.Show("You cannot make anymore then " + Globals.MaxCharacterCount + " Characters.");
                _character.Dispose();
                break;

            case 5:
                MirMessageBox.Show("A Character with this name already exists.");
                _character.NameTextBox.SetFocus();
                break;
            }
        }
コード例 #5
0
ファイル: SelectScene.cs プロジェクト: zhaokai1982/mir2
        private void NewCharacter(S.NewCharacter p)
        {
            _character.OKButton.Enabled = true;

            switch (p.Result)
            {
            case 0:
                MirMessageBox.Show("当前已禁止创建新角色.");
                _character.Dispose();
                break;

            case 1:
                MirMessageBox.Show("您使用的角色名称不可用.");
                _character.NameTextBox.SetFocus();
                break;

            case 2:
                MirMessageBox.Show("您选择的人物性别不存在.\n 请联系管理员寻求帮助.");
                break;

            case 3:
                MirMessageBox.Show("您选择的职业不存在.\n 请联系管理员寻求帮助.");
                break;

            case 4:
                MirMessageBox.Show("您的角色已经满了只能使用 " + Globals.MaxCharacterCount + " 角色.");
                _character.Dispose();
                break;

            case 5:
                MirMessageBox.Show("该角色名称已经被使用,请更换.");
                _character.NameTextBox.SetFocus();
                break;
            }
        }