public override bool ParseDataFromNDT(TsDataReader dr) { foreach (TsDataReader.Row data in dr) { BASE_COLOSSEUM_CHALLENGE_DATA bASE_COLOSSEUM_CHALLENGE_DATA = new BASE_COLOSSEUM_CHALLENGE_DATA(); bASE_COLOSSEUM_CHALLENGE_DATA.SetData(data); if (COLOSSEUM_CHALLENGE_DATA.m_dicColosseumChallengeData.ContainsKey(bASE_COLOSSEUM_CHALLENGE_DATA.m_i32Index)) { return(false); } COLOSSEUM_CHALLENGE_DATA.m_dicColosseumChallengeData.Add(bASE_COLOSSEUM_CHALLENGE_DATA.m_i32Index, bASE_COLOSSEUM_CHALLENGE_DATA); } return(true); }
public void SetEpisode(int nSelectStep) { if (nSelectStep < 0) { return; } this.m_nSelectStep = nSelectStep; BASE_COLOSSEUM_CHALLENGE_DATA colosseumChallengeData = COLOSSEUM_CHALLENGE_DATA.GetColosseumChallengeData(nSelectStep); if (colosseumChallengeData != null) { this.m_LeaderName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(colosseumChallengeData.m_i32InterfaceKey.ToString())); this.m_EpisodeSummary.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(colosseumChallengeData.m_nSummary.ToString())); ECO eco = NrTSingleton <NrBaseTableManager> .Instance.GetEco(colosseumChallengeData.m_i32EcoIndex.ToString()); if (eco != null) { this.m_Image.SetTexture(eCharImageType.LARGE, NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(eco.szCharCode[0]), -1, string.Empty); } } }
private void ShowChallengeList() { if (ColosseumChallenge.m_CurrentIndex == 0) { this.m_PrevButton.Visible = false; } else { this.m_PrevButton.Visible = true; } int totalCount = COLOSSEUM_CHALLENGE_DATA.GetTotalCount(); int num = totalCount / 8; if (num - 1 == ColosseumChallenge.m_CurrentIndex) { this.m_NextButton.Visible = false; } else { this.m_NextButton.Visible = true; } switch (ColosseumChallenge.m_CurrentIndex) { case 0: { this.m_ExplainText.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1407")); string str = string.Format("UI/pvp/{0}{1}", "practice_01", NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.SetBackImage), "practice_01"); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); break; } case 1: { this.m_ExplainText.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1408")); string str2 = string.Format("UI/pvp/{0}{1}", "practice_02", NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem2 = Holder.TryGetOrCreateBundle(str2 + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem2.SetItemType(ItemType.USER_ASSETB); wWWItem2.SetCallback(new PostProcPerItem(this.SetBackImage), "practice_02"); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true); break; } case 2: { this.m_ExplainText.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1409")); string str3 = string.Format("UI/pvp/{0}{1}", "practice_03", NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem3 = Holder.TryGetOrCreateBundle(str3 + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem3.SetItemType(ItemType.USER_ASSETB); wWWItem3.SetCallback(new PostProcPerItem(this.SetBackImage), "practice_03"); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem3, DownGroup.RUNTIME, true); break; } } this.m_dicEcoGroupInfo.Clear(); int num2 = ColosseumChallenge.m_CurrentIndex + 1; int num3 = 8 * num2; int num4 = num3 - 8; for (int i = num4; i < num3; i++) { BASE_COLOSSEUM_CHALLENGE_DATA colosseumChallengeData = COLOSSEUM_CHALLENGE_DATA.GetColosseumChallengeData(i); if (colosseumChallengeData != null) { int num5 = i % 8; this.SetEcoHeroinfo(num5, colosseumChallengeData.m_i32EcoIndex, i); this.m_ChallengeControl[num5].m_Name.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(colosseumChallengeData.m_i32InterfaceKey.ToString())); } } NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); long charSubData = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_COLOSSEUM_CHALLENGE); int num6; if (charSubData < 8L) { num6 = 0; } else if (charSubData < 16L) { num6 = 1; } else { num6 = 2; } int num7 = (int)charSubData % 8; if (num7 < 0) { return; } if (num6 == ColosseumChallenge.m_CurrentIndex) { this.m_ChallengeControl[num7].m_DisableMark.Visible = false; this.m_ChallengeControl[num7].m_DisableBG.Visible = false; } }