private void OnCalcle(IUIObject obj) { if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING || this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this.CancelQuest), this.m_Quest, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("799"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("126"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("320")); msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("321")); } } else if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { NrTSingleton <NkQuestManager> .Instance.QuestAutoMove(this.m_Quest.GetQuestUnique()); G_ID parentFormID = base.InteractivePanel.parentFormID; QuestList_DLG questList_DLG = NrTSingleton <FormsManager> .Instance.GetForm(parentFormID) as QuestList_DLG; if (questList_DLG != null) { questList_DLG.CloseDlg = true; } } else { this.Close(); } }
public void ShowQuestListDlg() { if (!TsPlatform.IsEditor) { return; } if (NkInputManager.GetKeyUp(KeyCode.L)) { QuestList_DLG questList_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.QUESTLIST_DLG) as QuestList_DLG; if (questList_DLG != null) { NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.QUESTLIST_DLG); } else { NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.QUESTLIST_DLG); } } }