// Token: 0x06012749 RID: 75593 RVA: 0x004BCEB0 File Offset: 0x004BB0B0 protected void OnRankingTypeMenuClick(RankingListType rankingType) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnRankingTypeMenuClickRankingListType_hotfix != null) { this.m_OnRankingTypeMenuClickRankingListType_hotfix.call(new object[] { this, rankingType2 }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; RankingListType rankingType = rankingType2; RankingUITask $this = this; if (this.m_currRankListType == rankingType) { return; } ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; if (!projectLPlayerContext.IsRankingListInfoValid(rankingType)) { int errorCode = 0; if (!projectLPlayerContext.IsAbleQueryRankingListInfo(rankingType, out errorCode)) { CommonUIController.Instance.ShowErrorMessage(errorCode, 2f, null, true); return; } RankingNetTask rankingNetTask = new RankingNetTask(rankingType, 0); rankingNetTask.EventOnStop += delegate(Task task) { RankingNetTask rankingNetTask2 = task as RankingNetTask; if (rankingNetTask2.Result == 0) { $this.m_currRankListType = rankingType; $this.EnablePipelineStateMask(RankingUITask.PipeLineStateMaskType.IsNeedLoadDynamic); $this.EnablePipelineStateMask(RankingUITask.PipeLineStateMaskType.IsRefreshRankingList); $this.StartUpdatePipeLine($this.m_currIntent, false, false, true); return; } CommonUIController.Instance.ShowErrorMessage(rankingNetTask2.Result, 2f, null, true); $this.StartUpdatePipeLine($this.m_currIntent, false, false, true); }; rankingNetTask.Start(null); } else { this.m_currRankListType = rankingType; this.EnablePipelineStateMask(RankingUITask.PipeLineStateMaskType.IsRefreshRankingList); base.StartUpdatePipeLine(this.m_currIntent, false, false, true); } }
// Token: 0x06012740 RID: 75584 RVA: 0x004BC820 File Offset: 0x004BAA20 public override void PrepareForStartOrResume(UIIntent intent, Action <bool> onPrepareEnd) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_PrepareForStartOrResumeUIIntentAction ` 1_hotfix != null) { this.m_PrepareForStartOrResumeUIIntentAction ` 1_hotfix.call(new object[] { this, intent, onPrepareEnd2 }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Action <bool> onPrepareEnd = onPrepareEnd2; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; UIIntentCustom uiintentCustom = intent as UIIntentCustom; RankingListType structParam = uiintentCustom.GetStructParam <RankingListType>(RankingUITask.ParamKey_RankingType); if (!projectLPlayerContext.IsRankingListInfoValid(structParam)) { RankingNetTask rankingNetTask = new RankingNetTask(structParam, 0); rankingNetTask.EventOnStop += delegate(Task task) { RankingNetTask rankingNetTask2 = task as RankingNetTask; if (rankingNetTask2.Result == 0) { onPrepareEnd(true); } else { CommonUIController.Instance.ShowErrorMessage(rankingNetTask2.Result, 2f, null, true); onPrepareEnd(false); } }; rankingNetTask.Start(null); } else { onPrepareEnd(true); } }