private void SelectRankMatchType(CUIEvent uiEvt) { uint tagUInt = uiEvt.m_eventParams.tagUInt; enUnionRankMatchType commonUInt32Param = (enUnionRankMatchType)uiEvt.m_eventParams.commonUInt32Param1; if (this.m_CurSelMapId == tagUInt) { return; } this.m_CurSelMapId = tagUInt; this.m_CurSelRankMatchType = commonUInt32Param; this.m_CurMapInfo = CUnionBattleEntrySystem.GetUnionBattleMapInfoByMapID(this.m_CurSelMapId); this.m_CurSelRankType = CUnionBattleRankSystem.ConvertSeverToLocalRankType(this.m_CurMapInfo.dwRankType); CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CUnionBattleRankSystem.UNION_RANK_PATH); if (form == null) { return; } if (this.IsNeedToRetrieveRankTypeInfo(this.m_CurSelRankType)) { this.RetrieveRankTypeInfo(this.m_CurSelRankType); } this.RefreshWinCntRankList(); this.RefreshAcntInfo(); }
private void SelectRankMatchType(CUIEvent uiEvt) { uint tagUInt = uiEvt.m_eventParams.tagUInt; enUnionRankMatchType type = (enUnionRankMatchType)uiEvt.m_eventParams.commonUInt32Param1; if (this.m_CurSelMapId != tagUInt) { this.m_CurSelMapId = tagUInt; this.m_CurSelRankMatchType = type; this.m_CurMapInfo = CUnionBattleEntrySystem.GetUnionBattleMapInfoByMapID(this.m_CurSelMapId); this.m_CurSelRankType = ConvertSeverToLocalRankType((COM_APOLLO_TRANK_SCORE_TYPE)this.m_CurMapInfo.dwRankType); if (Singleton <CUIManager> .GetInstance().GetForm(UNION_RANK_PATH) != null) { if (this.IsNeedToRetrieveRankTypeInfo(this.m_CurSelRankType)) { this.RetrieveRankTypeInfo(this.m_CurSelRankType); } this.RefreshWinCntRankList(); this.RefreshAcntInfo(); } } }