private void OnOkBtnClick(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); if (Tools.MoneyNotEnough(ECurrencyType.ECurrencyT_Diamond, 100, 0)) { GameUIPopupManager.GetInstance().PopState(true, null); return; } if (string.IsNullOrEmpty(this.mInputName.value)) { GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("CreateCharacterNullNameError"), 0f, 0f); return; } if (Tools.GetLength(this.mInputName.value) > 12) { GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("CreateCharacterMaxNameLengthError"), 0f, 0f); return; } MC2S_ChangeName mC2S_ChangeName = new MC2S_ChangeName(); mC2S_ChangeName.Name = this.mInputName.value; Globals.Instance.CliSession.Send(238, mC2S_ChangeName); }
private void HandleChangeNameCmd(CommandParser.Command param) { MC2S_ChangeName mC2S_ChangeName = new MC2S_ChangeName(); mC2S_ChangeName.Name = param.GetParam(1); Globals.Instance.CliSession.Send(238, mC2S_ChangeName); }