/// <summary> /// 进入挑战副本按钮点击 /// </summary> public void OnEnterBtnClick() { int num = 0; DataLookupsCache.Instance.SearchIntByID("res.chall-camp-point.v", out num); if (num <= 0) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstancePortalCtrl_1451")); return; } System.Action callback = delegate { LTChallengeInstanceHudController.EnterInstance(CurSelectLevel, false); LTInstanceMapModel.Instance.IsInstanceShowTheme = true; //上报友盟,开始挑战关卡 FusionTelemetry.PostStartCombat(eBattleType.ChallengeCampaign.ToString() + CurSelectLevel); }; Hotfix_LT.Messenger.Raise(EventName.PlayCloudFXCallback, callback); }
/// <summary> /// 恢复挑战界面事件 /// </summary> private void InitCurLevel() { int curLevel = 0; DataLookupsCache.Instance.SearchIntByID("userCampaignStatus.challengeChapters.curLevel", out curLevel); if (curLevel > 0) { Hashtable actTable = Johny.HashtablePool.Claim(); actTable["okAction"] = new System.Action(delegate { LTChallengeInstanceHudController.EnterInstance(curLevel, true); }); actTable["cancelAction"] = new System.Action(delegate { controller.Close(); }); GlobalMenuManager.Instance.Open("LTChallengeInstanceLoadView", actTable); } }