private void DropDownChapter(IUIObject obj) { ListItem listItem = this.m_DropDownList_DropDownList49.SelectedItem.Data as ListItem; this.m_CurChapter = (QUEST_CHAPTER)listItem.Key; this.m_QuestSearchList.Clear(); foreach (CQuestGroup current in this.m_QuestGroupList) { if (this.m_CurChapter.i16QuestChapterUnique == current.GetChapterUnique()) { this.m_QuestSearchList.Add(current); } } this.m_QuestSearchList.Sort(new Comparison <CQuestGroup>(QuestResetUI_DLG.AscendingNum)); this.m_i32CurPage = 1; this.SetCurrentPage(); this.ShowList(); }
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(); } }
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 override void SetComponent() { this.m_Questreset_nextbutton = (base.GetControl("Questreset_nextbutton") as Button); this.m_Questreset_prebutton = (base.GetControl("Questreset_prebutton") as Button); this.m_Questreset_reset = (base.GetControl("Questreset_reset") as Button); this.m_DropDownList_DropDownList49 = (base.GetControl("DropDownList_DropDownList49") as DropDownList); this.m_Questreset_searchcancel = (base.GetControl("Questreset_searchcancel") as Button); this.m_Questreset_searchbase = (base.GetControl("Questreset_searchbase") as TextArea); this.m_Questreset_listbox = (base.GetControl("Questreset_listbox") as ListBox); this.m_Questreset_page = (base.GetControl("Questreset_page") as Box); Button expr_B6 = this.m_Questreset_nextbutton; expr_B6.Click = (EZValueChangedDelegate)Delegate.Combine(expr_B6.Click, new EZValueChangedDelegate(this.BtnNext)); Button expr_DD = this.m_Questreset_prebutton; expr_DD.Click = (EZValueChangedDelegate)Delegate.Combine(expr_DD.Click, new EZValueChangedDelegate(this.BtnPre)); Button expr_104 = this.m_Questreset_reset; expr_104.Click = (EZValueChangedDelegate)Delegate.Combine(expr_104.Click, new EZValueChangedDelegate(this.BtnReset)); Button expr_12B = this.m_Questreset_searchcancel; expr_12B.Click = (EZValueChangedDelegate)Delegate.Combine(expr_12B.Click, new EZValueChangedDelegate(this.BtnSearchCancle)); this.m_Questreset_listbox.ColumnNum = 4; this.m_Questreset_listbox.UseColumnRect = true; this.m_Questreset_listbox.SetColumnRect(0, 6, 4, 60, 20, SpriteText.Anchor_Pos.Middle_Center, 15f); this.m_Questreset_listbox.SetColumnRect(1, 89, 4, 200, 20, SpriteText.Anchor_Pos.Middle_Left, 15f); this.m_Questreset_listbox.SetColumnRect(2, 327, 0, 92, 20, SpriteText.Anchor_Pos.Middle_Center, 14f); this.m_Questreset_listbox.SetColumnRect(3, 422, 5, 20, 20); this.m_Questreset_listbox.SetValueChangedDelegate(new EZValueChangedDelegate(this.SelectColum)); this.m_Questreset_searchbase.SetValueChangedDelegate(new EZValueChangedDelegate(this.OnTextChaged)); Dictionary <short, QUEST_CHAPTER> hashQuestChapter = NrTSingleton <NkQuestManager> .Instance.GetHashQuestChapter(); if (hashQuestChapter != null) { this.m_DropDownList_DropDownList49.SetViewArea(3); this.m_DropDownList_DropDownList49.Clear(); foreach (QUEST_CHAPTER current in hashQuestChapter.Values) { ListItem listItem = new ListItem(); string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("667"); string str = current.i16QuestChapterUnique.ToString() + textFromInterface; listItem.SetColumnStr(0, str); listItem.Key = current; this.m_DropDownList_DropDownList49.Add(listItem); } this.m_DropDownList_DropDownList49.RepositionItems(); this.m_DropDownList_DropDownList49.SetFirstItem(); } ListItem listItem2 = this.m_DropDownList_DropDownList49.SelectedItem.Data as ListItem; this.m_CurChapter = (listItem2.Key as QUEST_CHAPTER); this.m_DropDownList_DropDownList49.AddValueChangedDelegate(new EZValueChangedDelegate(this.DropDownChapter)); this.m_QuestSearchList.Clear(); foreach (CQuestGroup current2 in this.m_QuestGroupList) { if (this.m_CurChapter.i16QuestChapterUnique == current2.GetChapterUnique()) { this.m_QuestSearchList.Add(current2); } } this.m_QuestSearchList.Sort(new Comparison <CQuestGroup>(QuestResetUI_DLG.AscendingNum)); this.SetCurrentPage(); this.ShowList(); }