private void SetQuestSubStory() { bool flag = false; this.m_kSubStoryListBox.Clear(); int level = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel(); foreach (CQuestGroup current in this.m_kQuestGroupList) { for (int i = 0; i < 200; i++) { CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(current.GetQuestUniqueByBit(i)); if (questByQuestUnique != null) { if (!NrTSingleton <NkQuestManager> .Instance.IsCompletedQuest(questByQuestUnique.GetQuestUnique())) { if ((int)questByQuestUnique.GetQuestLevel(1) <= level) { if (NrTSingleton <NkQuestManager> .Instance.GetQuestState(questByQuestUnique.GetQuestUnique()) == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { NewListItem newListItem = new NewListItem(this.m_kSubStoryListBox.ColumnNum, true, string.Empty); if ((int)questByQuestUnique.GetQuestLevel(1) < level) { newListItem.SetListItemData(7, false); } string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("75"), "count", current.GetPageUnique() }); newListItem.SetListItemData(1, empty, null, null, null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("93"), "targetname", questByQuestUnique.GetQuestNpcName() }); newListItem.SetListItemData(3, empty, questByQuestUnique.GetQuestUnique(), new EZValueChangedDelegate(this.ClickMove), null); newListItem.SetListItemData(4, current.GetGroupTitle(), null, null, null); newListItem.SetListItemData(5, "UI/Adventure/EpisodeBG", true, null, null); newListItem.SetListItemData(6, questByQuestUnique.GetQuestNpc().GetCharKind(), true, null, null); newListItem.SetListItemData(8, questByQuestUnique.GetQuestLevel(1).ToString(), null, null, null); newListItem.SetListItemData(8, false); this.m_kSubStoryListBox.Add(newListItem); flag = true; break; } } } } } } this.m_kSubStoryListBox.RepositionItems(); if (flag) { base.SetShowLayer(1, false); } }