public void QuestAccept(string strQuestUnique) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique); if (questByQuestUnique != null) { Tapjoy.TrackEvent("Play", "Quest", questByQuestUnique.GetQuestTitle(), "QuestAccept", 0L); } }
public void QuestComplete(string strQuestUnique) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique); if (questByQuestUnique != null) { Tapjoy.TrackEvent("Play", "Quest", questByQuestUnique.GetQuestTitle(), "QuestComplete", 0L); this.Placement("quest_end"); } }
private void ChangeChapter(IUIObject obj) { ListItem listItem = this.m_DropDownList2.SelectedItem.Data as ListItem; this.m_CurrentChapter = (listItem.Key as QUEST_CHAPTER); Dictionary <int, CQuestGroup> hashQuestGroup = NrTSingleton <NkQuestManager> .Instance.GetHashQuestGroup(); this.m_DropDownList3.Clear(); foreach (CQuestGroup current in hashQuestGroup.Values) { if (this.m_CurrentChapter.i16QuestChapterUnique == current.GetChapterUnique()) { ListItem listItem2 = new ListItem(); listItem2.SetColumnStr(0, current.GetPageUnique().ToString()); listItem2.Key = current; this.m_DropDownList3.Add(listItem2); } } this.m_DropDownList3.SetFirstItem(); this.m_DropDownList3.RepositionItems(); ListItem listItem3 = this.m_DropDownList3.SelectedItem.Data as ListItem; this.m_CurGroup = (listItem3.Key as CQuestGroup); if (this.m_CurGroup != null) { this.m_ListBox.Clear(); foreach (QUEST_SORTID current2 in this.m_CurGroup.GetGroupInfo().m_QuestUnique.Values) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(current2.m_strQuestUnique); if (questByQuestUnique != null) { ListItem listItem4 = new ListItem(); listItem4.SetColumnStr(0, questByQuestUnique.GetQuestTitle() + " " + questByQuestUnique.GetQuestUnique().ToString()); listItem4.Key = questByQuestUnique; this.m_ListBox.Add(listItem4); } } this.m_ListBox.RepositionItems(); } }
private void ChangePage(IUIObject obj) { ListItem listItem = this.m_DropDownList3.SelectedItem.Data as ListItem; this.m_CurGroup = (listItem.Key as CQuestGroup); if (this.m_CurGroup != null) { this.m_ListBox.Clear(); foreach (QUEST_SORTID current in this.m_CurGroup.GetGroupInfo().m_QuestUnique.Values) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(current.m_strQuestUnique); if (questByQuestUnique != null) { ListItem listItem2 = new ListItem(); listItem2.SetColumnStr(0, questByQuestUnique.GetQuestTitle() + " " + questByQuestUnique.GetQuestUnique().ToString()); listItem2.Key = questByQuestUnique; this.m_ListBox.Add(listItem2); } } this.m_ListBox.RepositionItems(); } }
public override void SetComponent() { this.m_DropDownList2 = (base.GetControl("DropDownList2") as DropDownList); this.m_DropDownList3 = (base.GetControl("DropDownList3") as DropDownList); this.m_Button_Button4 = (base.GetControl("Button_Button4") as Button); this.m_Button_Button7 = (base.GetControl("Button_Button7") as Button); this.m_Button_Button15 = (base.GetControl("Button_Button15") as Button); this.m_Button_Button16 = (base.GetControl("Button_Button16") as Button); this.m_Button_Button17 = (base.GetControl("Button_Button17") as Button); this.m_Button_Button18 = (base.GetControl("Button_Button18") as Button); this.m_Button_Button19 = (base.GetControl("Button_Button19") as Button); this.m_Button_Button20 = (base.GetControl("Button_Button20") as Button); this.m_Button_Button23 = (base.GetControl("Button_Button23") as Button); this.m_Button_Button25 = (base.GetControl("Button_Button23") as Button); this.m_Button_Button26 = (base.GetControl("Button_Button23") as Button); this.m_ListBox = (base.GetControl("ListBox") as ListBox); Button expr_13A = this.m_Button_Button4; expr_13A.Click = (EZValueChangedDelegate)Delegate.Combine(expr_13A.Click, new EZValueChangedDelegate(this.OnCharUniqueSet)); Button expr_161 = this.m_Button_Button7; expr_161.Click = (EZValueChangedDelegate)Delegate.Combine(expr_161.Click, new EZValueChangedDelegate(this.OnQuestUniqueSet)); Button expr_188 = this.m_Button_Button15; expr_188.Click = (EZValueChangedDelegate)Delegate.Combine(expr_188.Click, new EZValueChangedDelegate(this.OnQuestPass_Small)); Button expr_1AF = this.m_Button_Button16; expr_1AF.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1AF.Click, new EZValueChangedDelegate(this.OnQuestInit_Small)); Button expr_1D6 = this.m_Button_Button17; expr_1D6.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1D6.Click, new EZValueChangedDelegate(this.OnQuestPass_Middle)); Button expr_1FD = this.m_Button_Button18; expr_1FD.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1FD.Click, new EZValueChangedDelegate(this.OnQuestInit_Middle)); Button expr_224 = this.m_Button_Button19; expr_224.Click = (EZValueChangedDelegate)Delegate.Combine(expr_224.Click, new EZValueChangedDelegate(this.OnQuestAllPass)); Button expr_24B = this.m_Button_Button20; expr_24B.Click = (EZValueChangedDelegate)Delegate.Combine(expr_24B.Click, new EZValueChangedDelegate(this.OnQuestAllInit)); Button expr_272 = this.m_Button_Button23; expr_272.Click = (EZValueChangedDelegate)Delegate.Combine(expr_272.Click, new EZValueChangedDelegate(this.OnOption)); Button expr_299 = this.m_Button_Button25; expr_299.Click = (EZValueChangedDelegate)Delegate.Combine(expr_299.Click, new EZValueChangedDelegate(this.OnQuestPass_Big)); Button expr_2C0 = this.m_Button_Button26; expr_2C0.Click = (EZValueChangedDelegate)Delegate.Combine(expr_2C0.Click, new EZValueChangedDelegate(this.OnQuestInit_Big)); this.m_DropDownList2.AddValueChangedDelegate(new EZValueChangedDelegate(this.ChangeChapter)); this.m_DropDownList3.AddValueChangedDelegate(new EZValueChangedDelegate(this.ChangePage)); this.m_ListBox.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickList)); Dictionary <short, QUEST_CHAPTER> hashQuestChapter = NrTSingleton <NkQuestManager> .Instance.GetHashQuestChapter(); if (hashQuestChapter != null) { this.m_DropDownList2.Clear(); foreach (QUEST_CHAPTER current in hashQuestChapter.Values) { ListItem listItem = new ListItem(); listItem.SetColumnStr(0, current.i16QuestChapterUnique.ToString()); listItem.Key = current; this.m_DropDownList2.Add(listItem); } this.m_DropDownList2.SetFirstItem(); } this.m_DropDownList2.RepositionItems(); ListItem listItem2 = this.m_DropDownList2.SelectedItem.Data as ListItem; this.m_CurrentChapter = (listItem2.Key as QUEST_CHAPTER); Dictionary <int, CQuestGroup> hashQuestGroup = NrTSingleton <NkQuestManager> .Instance.GetHashQuestGroup(); foreach (CQuestGroup current2 in hashQuestGroup.Values) { this.m_DropDownList3.SetViewArea(10); this.m_DropDownList3.Clear(); if (this.m_CurrentChapter.i16QuestChapterUnique == current2.GetChapterUnique()) { ListItem listItem3 = new ListItem(); listItem3.SetColumnStr(0, current2.GetGroupTitle() + " " + current2.GetPageUnique().ToString()); listItem3.Key = current2; this.m_DropDownList3.Add(listItem3); } } this.m_DropDownList3.RepositionItems(); this.m_DropDownList3.SetFirstItem(); listItem2 = (this.m_DropDownList3.SelectedItem.Data as ListItem); this.m_CurGroup = (listItem2.Key as CQuestGroup); this.m_ListBox.ColumnNum = 1; if (this.m_CurGroup != null) { foreach (QUEST_SORTID current3 in this.m_CurGroup.GetGroupInfo().m_QuestUnique.Values) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(current3.m_strQuestUnique); if (questByQuestUnique != null) { ListItem listItem4 = new ListItem(); listItem4.SetColumnStr(0, questByQuestUnique.GetQuestTitle() + " " + questByQuestUnique.GetQuestUnique().ToString()); listItem4.Key = questByQuestUnique; this.m_ListBox.Add(listItem4); } } this.m_ListBox.RepositionItems(); } }
public void QuestUpdate() { this.m_kQuestList.Clear(); List <USER_CURRENT_QUEST_INFO> list = new List <USER_CURRENT_QUEST_INFO>(); foreach (USER_CURRENT_QUEST_INFO current in NrTSingleton <NkQuestManager> .Instance.GetMainlist()) { list.Add(current); } foreach (USER_CURRENT_QUEST_INFO current2 in NrTSingleton <NkQuestManager> .Instance.GetSublist()) { list.Add(current2); } float num = 0f; int num2 = 0; foreach (USER_CURRENT_QUEST_INFO current3 in list) { if (!(current3.strQuestUnique == string.Empty)) { string strQuestUnique = current3.strQuestUnique; if (strQuestUnique != string.Empty) { CQuestGroup questGroupByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(strQuestUnique); if (questGroupByQuestUnique != null) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique); if (questByQuestUnique != null) { float num3 = 80f; int num4 = 0; for (int i = 0; i < 3; i++) { if (0 < questByQuestUnique.GetQuestCommon().cQuestCondition[i].i32QuestCode) { num4++; } } if (num4 == 1) { this.m_kQuestList.SetColumnData("Mobile/DLG/Main/nlb_questlist_columndata" + NrTSingleton <UIDataManager> .Instance.AddFilePath); } else if (num4 == 2) { this.m_kQuestList.SetColumnData("Mobile/DLG/Main/nlb_questlist2_columndata" + NrTSingleton <UIDataManager> .Instance.AddFilePath); num3 = 120f; } else if (num4 == 3) { this.m_kQuestList.SetColumnData("Mobile/DLG/Main/nlb_questlist3_columndata" + NrTSingleton <UIDataManager> .Instance.AddFilePath); num3 = 160f; } num += num3; this.m_kQuestList.LineHeight = num3; NewListItem newListItem = new NewListItem(this.m_kQuestList.ColumnNum, true, string.Empty); this.ShowTouchButton(questByQuestUnique); string text = string.Empty; string[] array = new string[3]; text = questByQuestUnique.GetGiveQuestNpcName(); if (!(text != string.Empty)) { string msg = string.Format("Quest Give Npc Name == Blank, unique = {0}, charcode = {1}", questByQuestUnique.GetQuestUnique(), questByQuestUnique.GetQuestCommon().i32QuestCharKind); NrTSingleton <NrMainSystem> .Instance.Alert(msg); return; } CSelQuestInfo cSelQuestInfo = new CSelQuestInfo(); cSelQuestInfo.m_bComplete = true; cSelQuestInfo.m_SeldQuestCondition = questByQuestUnique.GetQuestCommon().cQuestCondition[0]; cSelQuestInfo.m_SelQuest = questByQuestUnique; cSelQuestInfo.bType = 0; CQuestGroup questGroupByQuestUnique2 = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(questByQuestUnique.GetQuestUnique()); if (questGroupByQuestUnique2 != null) { if (NrTSingleton <NkQuestManager> .Instance.GetToggleQuestUnique()) { text = NrTSingleton <UIDataManager> .Instance.GetString(this.m_ColorTitle, questByQuestUnique.GetQuestTitle(), "(", questByQuestUnique.GetQuestUnique().ToString(), ")"); } else { text = NrTSingleton <UIDataManager> .Instance.GetString(this.m_ColorTitle, questByQuestUnique.GetQuestTitle()); } newListItem.SetListItemData(3, text, cSelQuestInfo, null, null); } for (int j = 0; j < 3; j++) { if (0 < questByQuestUnique.GetQuestCommon().cQuestCondition[j].i32QuestCode) { array[j] = questByQuestUnique.GetConditionText(current3.i64ParamVal[j], j); if (string.Empty != array[j]) { string conditionText = questByQuestUnique.GetConditionText(current3.i64ParamVal[j], j); string empty = string.Empty; bool bTitle = NrTSingleton <CTextParser> .Instance.ChangeQuestConditionText(conditionText, out empty); if (NrTSingleton <NkQuestManager> .Instance.GetToggleQuestUnique()) { array[j] = string.Concat(new object[] { empty, "(", questByQuestUnique.GetQuestCommon().cQuestCondition[j].i32QuestCode, ")" }); } else { array[j] = empty; } CSelQuestInfo cSelQuestInfo2 = new CSelQuestInfo(); int index = 5; if (j == 0) { index = 5; } else if (j == 1) { index = 10; } else if (j == 2) { index = 13; } if (questByQuestUnique.CheckCondition(questByQuestUnique.GetQuestCommon().cQuestCondition[j].i64Param, ref current3.i64ParamVal[j], j) && current3.bFailed == 0) { cSelQuestInfo2.m_bComplete = true; cSelQuestInfo2.m_SeldQuestCondition = questByQuestUnique.GetQuestCommon().cQuestCondition[j]; cSelQuestInfo2.m_SelQuest = questByQuestUnique; cSelQuestInfo2.bType = 1; cSelQuestInfo2.bTitle = bTitle; cSelQuestInfo2.strCon = conditionText; newListItem.SetListItemData(index, this.m_ColorComplte + array[j], cSelQuestInfo2, null, null); } else { cSelQuestInfo2.m_bComplete = false; cSelQuestInfo2.m_SeldQuestCondition = questByQuestUnique.GetQuestCommon().cQuestCondition[j]; cSelQuestInfo2.m_SelQuest = questByQuestUnique; cSelQuestInfo2.bType = 1; cSelQuestInfo2.bTitle = bTitle; cSelQuestInfo2.strCon = conditionText; newListItem.SetListItemData(index, this.m_ColorNormal + array[j], cSelQuestInfo2, null, null); } } } } if (questGroupByQuestUnique.GetQuestType() == 2) { newListItem.SetListItemData(7, string.Empty, questByQuestUnique, new EZValueChangedDelegate(this.ClickCancelQuest), null); } else { newListItem.SetListItemData(6, false); newListItem.SetListItemData(7, false); } newListItem.Data = strQuestUnique; this.m_kQuestList.Add(newListItem); if (0 < num2) { num += this.m_kQuestList.itemSpacing; } num2++; } } } } } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { ChallengeTable sequenceChallengeTable = NrTSingleton <ChallengeManager> .Instance.GetSequenceChallengeTable(); if (sequenceChallengeTable != null && (int)sequenceChallengeTable.m_nLevel <= kMyCharInfo.GetLevel()) { UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo(); if (userChallengeInfo != null && userChallengeInfo.GetLoadData()) { Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(sequenceChallengeTable.m_nUnique); num += 80f; this.m_kQuestList.LineHeight = 80f; NewListItem newListItem2 = new NewListItem(this.m_kQuestList.ColumnNum, true, string.Empty); newListItem2.SetListItemData(0, "Win_T_QuestTitleBK2", null, null, null); newListItem2.SetListItemData(2, "Win_I_QuestMark02", null, null, null); newListItem2.SetListItemData(3, this.m_ColorTitle + NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(sequenceChallengeTable.m_szTitleTextKey), null, null, null); string str = string.Empty; string textFromChallenge = NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(sequenceChallengeTable.m_kRewardInfo[0].m_szConditionTextKey); if (textFromChallenge.Contains("count")) { if (userChallengeInfo2 == null) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[] { textFromChallenge, "count", sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount, "count1", 0, "count2", sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount }); newListItem2.SetListItemData(5, this.m_ColorNormal + str, null, null, null); } else if (userChallengeInfo2.m_nValue >= (long)sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[] { textFromChallenge, "count", sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount, "count1", userChallengeInfo2.m_nValue, "count2", sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount }); newListItem2.SetListItemData(5, this.m_ColorComplte + str, null, null, null); } } else { str = textFromChallenge; if (userChallengeInfo2 == null) { newListItem2.SetListItemData(5, this.m_ColorNormal + str, null, null, null); } else if (userChallengeInfo2.m_nValue >= (long)sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount) { newListItem2.SetListItemData(5, this.m_ColorComplte + str, null, null, null); } else { newListItem2.SetListItemData(5, this.m_ColorNormal + str, null, null, null); } } newListItem2.SetListItemData(6, false); newListItem2.SetListItemData(7, false); newListItem2.Data = sequenceChallengeTable.m_nUnique.ToString() + this.m_ChallengeUniqueDistinguish; this.m_kQuestList.Add(newListItem2); } } } base.SetSize(base.GetSizeX(), num); this.m_kQuestList.ResizeViewableArea(this.m_kQuestList.GetSize().x, num); NrTSingleton <NkQuestManager> .Instance.UpdateClientNpc(0); }
public void SetQuestInfo(CQuest kQuest) { this.m_Quest = kQuest; this.m_eQuestState = NrTSingleton <NkQuestManager> .Instance.GetQuestState(this.m_Quest.GetQuestUnique()); if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { this.m_Quest_Info_Cancel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1162"); } else if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING || this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE) { this.m_Quest_Info_Cancel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("799"); } else { this.m_Quest_Info_Cancel.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("10"); } CQuestGroup questGroupByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(this.m_Quest.GetQuestUnique()); short chapterUnique = NrTSingleton <NkQuestManager> .Instance.GetChapterUnique(this.m_Quest.GetQuestUnique()); string text = "None"; if (questGroupByQuestUnique != null) { text = questGroupByQuestUnique.GetPage(); } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("666"); string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("667"); string text2 = string.Concat(new object[] { this.str1101, chapterUnique, textFromInterface2, " ", text, textFromInterface, ". ", this.str1107, kQuest.GetQuestTitle() }); if (questGroupByQuestUnique.GetQuestType() == 2) { text2 = string.Concat(new string[] { this.str1101, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1454"), ". ", this.str1107, kQuest.GetQuestTitle() }); } else if (questGroupByQuestUnique.GetQuestType() == 100) { text2 = string.Concat(new string[] { this.str1101, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("784"), ". ", this.str1107, kQuest.GetQuestTitle() }); } this.m_Quest_Info_Chapter_Page_Quest_Title.SetText(text2); text2 = string.Empty; this.m_Quest_Info_Summary.Clear(); ListItem listItem = new ListItem(); if (this.m_eQuestState <= QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1202"); this.m_Quest_Info_Summary.SetColumnAlignment(0, SpriteText.Anchor_Pos.Middle_Center); this.m_Quest_Info_Description_BG2.SetAlpha(0.7f); this.m_Quest_Info_Description_BG1.SetAlpha(0.7f); } else { text2 = this.m_Quest.GetQuestSummary(); this.m_Quest_Info_Summary.SetColumnAlignment(0, SpriteText.Anchor_Pos.Middle_Left); this.m_Quest_Info_Description_BG2.SetAlpha(1f); this.m_Quest_Info_Description_BG1.SetAlpha(1f); } listItem.SetColumnStr(0, text2); this.m_Quest_Info_Summary.Add(listItem); this.m_Quest_Info_Summary.RepositionItems(); text2 = string.Empty; if (this.m_Quest.GetQuestCommon().cQuestCondition[0] != null) { text2 = this.m_Quest.GetConditionText(0L, 0); this.m_Quest_Info_Condition_Hint01.SetText(this.str1201 + text2); } if (this.m_Quest.GetQuestCommon().cQuestCondition[1] != null) { text2 = this.m_Quest.GetConditionText(0L, 1); this.m_Quest_Info_Condition_Hint02.SetText(this.str1201 + text2); } if (this.m_Quest.GetQuestCommon().cQuestCondition[2] != null) { text2 = this.m_Quest.GetConditionText(0L, 2); this.m_Quest_Info_Condition_Hint03.SetText(this.str1201 + text2); } if (this.m_eQuestState <= QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { this.m_Quest_Info_Condition_Hint01.SetText(string.Empty); this.m_Quest_Info_Condition_Hint02.SetText(string.Empty); this.m_Quest_Info_Condition_Hint03.SetText(string.Empty); } this.SetGrade(); this.SetReward(); }
public void SetTotal() { string str = string.Empty; this.m_Quest_Info_completeTreeview.ClearList(true); string textFromInterface = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("666"); Dictionary<short, QUEST_CHAPTER> hashQuestChapter = NrTSingleton<NkQuestManager>.Instance.GetHashQuestChapter(); this.m_ChapterTree.Clear(); if (hashQuestChapter != null) { foreach (QUEST_CHAPTER current in hashQuestChapter.Values) { if (this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_SUB || this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_DAY) { bool flag = false; foreach (CQuestGroup current2 in this.m_QuesGroupList) { if (current.i16QuestChapterUnique == current2.GetChapterUnique() && this.m_CurQuestType == (QUEST_CONST.E_QUEST_TYPE)current2.GetQuestType()) { flag = true; break; } } if (!flag) { continue; } } TREE_TYPE tREE_TYPE = new TREE_TYPE(); tREE_TYPE.bType = 0; tREE_TYPE.bData = current; string textFromInterface2 = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("667"); string textFromQuest_Title = NrTSingleton<NrTextMgr>.Instance.GetTextFromQuest_Title(current.strChapterTextKey); string text = current.i16QuestChapterUnique.ToString() + textFromInterface2 + ". " + textFromQuest_Title; text = this.m_str1206 + text; TreeView.TreeNode value = this.m_Quest_Info_completeTreeview.InsertChildRoot(text, tREE_TYPE, true); this.m_ChapterTree.Add(current.i16QuestChapterUnique, value); } } this.m_PageTree.Clear(); foreach (CQuestGroup current3 in this.m_QuesGroupList) { if (this.m_CurQuestType == (QUEST_CONST.E_QUEST_TYPE)current3.GetQuestType() || this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_TOTAL) { if (NrTSingleton<NkQuestManager>.Instance.QuestGroupClearCheck(current3.GetGroupUnique()) == QUEST_CONST.E_QUEST_GROUP_STATE.E_QUEST_GROUP_STATE_NONE) { this.m_str1205 = NrTSingleton<CTextParser>.Instance.GetTextColor("1205"); } else { this.m_str1205 = NrTSingleton<CTextParser>.Instance.GetTextColor("1102"); } TREE_TYPE tREE_TYPE2 = new TREE_TYPE(); tREE_TYPE2.bType = 1; tREE_TYPE2.bData = current3; str = string.Concat(new string[] { this.m_str1205, current3.GetPage(), textFromInterface, ". ", current3.GetGroupTitle() }); if (this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_SUB) { str = this.m_str1205 + NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1454") + ". " + current3.GetGroupTitle(); } else if (this.m_CurQuestType == QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_DAY) { str = this.m_str1205 + current3.GetGroupTitle(); } if (this.m_ChapterTree.ContainsKey(current3.GetChapterUnique())) { TreeView.TreeNode treeNode = this.m_ChapterTree[current3.GetChapterUnique()]; if (treeNode != null) { TreeView.TreeNode treeNode2 = treeNode.AddChild(1, str, tREE_TYPE2); this.m_PageTree.Add(current3.GetGroupUnique(), treeNode2); foreach (QUEST_SORTID current4 in current3.GetGroupInfo().m_QuestList) { CQuest questByQuestUnique = NrTSingleton<NkQuestManager>.Instance.GetQuestByQuestUnique(current4.m_strQuestUnique); if (questByQuestUnique != null) { TREE_TYPE tREE_TYPE3 = new TREE_TYPE(); tREE_TYPE3.bType = 2; tREE_TYPE3.bData = questByQuestUnique; string str2 = string.Empty; if (NrTSingleton<NkQuestManager>.Instance.GetQuestState(current4.m_strQuestUnique) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_NONE) { str2 = NrTSingleton<UIDataManager>.Instance.GetString(this.m_str1202, "- ", questByQuestUnique.GetQuestTitle()); } else { str2 = NrTSingleton<UIDataManager>.Instance.GetString(this.m_str1102, "- ", questByQuestUnique.GetQuestTitle()); } treeNode2.AddChild(2, str2, tREE_TYPE3); } } } } } } this.m_Quest_Info_completeTreeview.RepositionItems(); this.SetProgress(); }