private void ShowSetPassWord(bool isShow = true) { if (isShow) { this.YourUserName.gameObject.SetActive(false); this.Message.gameObject.SetActive(false); this.GetMessage.gameObject.SetActive(false); this.RegistrationPIN.gameObject.SetActive(true); this.PINAgain.gameObject.SetActive(true); this.Validate.gameObject.SetActive(false); this.Registration.gameObject.SetActive(true); AutoTestController.InvokeTestLogic(AutoTestTag.Login, delegate { this.RegistrationPIN.value = "aaaaaa"; this.PINAgain.value = this.RegistrationPIN.value; this.clickRegistration(null); }, 1f); } else { this.YourUserName.gameObject.SetActive(true); this.Message.gameObject.SetActive(true); this.GetMessage.gameObject.SetActive(true); this.RegistrationPIN.gameObject.SetActive(false); this.PINAgain.gameObject.SetActive(false); this.Validate.gameObject.SetActive(true); this.Registration.gameObject.SetActive(false); } }
public override void HandleAfterOpenView() { AutoTestController.InvokeTestLogic(AutoTestTag.Home, delegate { CtrlManager.CloseWindow(WindowID.AnnouncementView); }, 1f); }
public override void HandleAfterOpenView() { AutoTestController.InvokeTestLogic(AutoTestTag.Home, delegate { this.ClickGetReward(null); }, 1f); }
private void TestCreateName() { AutoTestController.InvokeTestLogic(AutoTestTag.Login, delegate { this.Dice_Event(null); AutoTestController.InvokeTestLogic(AutoTestTag.Login, delegate { this.CreatName_Event(null); }, 1f); }, 1f); }
public override void HandleAfterOpenView() { base.HandleAfterOpenView(); AudioMgr.PlayUI("Play_UI_Match", null, false, false); this._task = new Task(this.UpdateTime_Coroutine(), true); this._newbieFakeMatchFiveMatch.gameObject.SetActive(false); NewbieManager.Instance.TryHandleMatchedSuc(); AutoTestController.InvokeTestLogic(AutoTestTag.EnterPvp, delegate { this.OnClickPlay(null); }, 1f); Singleton <MenuTopBarView> .Instance.SetActiveOrNot(true); }
private void OnBattleEnd(MobaMessage msg) { P2CBattleEndInfo probufMsg = msg.GetProbufMsg <P2CBattleEndInfo>(); PvpTeamInfo teamInfo = probufMsg.teamInfo; Singleton <PvpManager> .Instance.RoomInfo.WinTeam = new TeamType?(PvpProtocolTools.GroupToTeam((int)probufMsg.winGroup)); Singleton <PvpManager> .Instance.RoomInfo.BattleResult = teamInfo; this.OnAfterBattleEnd(probufMsg); AutoTestController.InvokeTestLogic(AutoTestTag.LeavePvp, delegate { PvpUtils.GoHome(); }, 1f); }
public override void HandleAfterOpenView() { base.HandleAfterOpenView(); this.clickerCounter = 0; if (this.cMgr == null) { this.cMgr = new CoroutineManager(); } this.cMgr.StartCoroutine(this.RefreshSenderFlag(), true); AutoTestController.InvokeTestLogic(AutoTestTag.SelectServer, delegate { this.OnClickConfirm(null); }, 1f); }
public void SetParam(PopViewParam p) { if (p == null) { return; } this.param = p; this.CreateTask(); this.RefreshUI(); AutoTestController.InvokeTestLogic(AutoTestTag.All, delegate { this.OnBtnOk(null); }, 1f); }
private void On_server_Register(MobaMessage msg) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse == null) { Singleton <TipView> .Instance.ShowViewSetText("注册失败...系统错误", 1f); LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_waitLogin); } else { int num = (int)operationResponse.Parameters[1]; MobaErrorCode mobaErrorCode = (MobaErrorCode)num; if (mobaErrorCode != MobaErrorCode.Ok) { if (mobaErrorCode != MobaErrorCode.UserExist) { Singleton <TipView> .Instance.ShowViewSetText("注册失败...系统错误", 1f); LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_waitLogin); } else { if (!AutoTestController.IsEnable(AutoTestTag.Login)) { CtrlManager.ShowMsgBox("注册失败", "该账号已经被注册,请更换一个账号重新注册", null, PopViewType.PopOneButton, "确定", "取消", null); } LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_waitLogin); AutoTestController.InvokeTestLogic(AutoTestTag.Login, delegate { Singleton <LoginView_New> .Instance.TestRegisterAgain(); }, 1f); } } else { Singleton <TipView> .Instance.ShowViewSetText("注册成功", 1f); this.bFinish = true; LoginStateManager.Instance.ChangeState(LoginStateCode.LoginState_masterLogin); } } }
public override void HandleAfterOpenView() { this.clickCd = false; SendMsgManager.Instance.SendMsg(MobaGameCode.DealGameReport, null, new object[0]); if (Singleton <MenuBottomBarView> .Instance.IsOpen) { CtrlManager.CloseWindow(WindowID.MenuBottomBarView); } if (PvpMatchMgr.State == PvpMatchState.Matching) { this.ShowMatchingFrame(); } else if (PvpMatchMgr.State == PvpMatchState.Matched) { this.ShowMatchingFrame(); } PvpLevelStorage.DispatchChooseGameMsg(); bool flag = CharacterDataMgr.instance.GetUserLevel(ModelManager.Instance.Get_userData_X().Exp) >= BaseDataMgr.instance.GetDataById <SysBattleSceneVo>("80006").scene_limit_level; this._daluandou.FindChild("Lock").gameObject.SetActive(!flag); this._daluandou.GetComponent <BoxCollider>().enabled = flag; if (flag) { this._task_timeLock = this._timeLockCMgr.StartCoroutine(this.RankTimeLock(), true); } this._timeLockCMgr.StartCoroutine(this.RankSeasonLock(), true); bool flag2 = CharacterDataMgr.instance.GetUserLevel(ModelManager.Instance.Get_userData_X().Exp) >= BaseDataMgr.instance.GetDataById <SysBattleSceneVo>("80021").scene_limit_level; this._jbs.FindChild("Lock").gameObject.SetActive(!flag2); this._jbs.GetComponent <BoxCollider>().enabled = flag2; if (flag2) { this._timeLockCMgr.StartCoroutine(this.LeagueTimeLock(), true); } AutoTestController.InvokeTestLogic(AutoTestTag.EnterPvp, delegate { this.ClickFightWithRobot(null); }, 1f); }
public override void HandleAfterOpenView() { base.HandleAfterOpenView(); this.RequestFontTexture(); AutoTestController.InvokeTestLogic(AutoTestTag.Login, new Action(this.TestAutoLogin), 1f); }