public void Back() { backBtn.SetActive(false); AcceptBtn.SetActive(false); ShowQuests(questGiver); completeBtn.SetActive(false); }
//퀘스트 이름 클릭시 퀘스트를 수락할지, 뒤로 돌아갈지(다른 퀘스트를 보기위함), 퀘스트 설명을 표현 public void ShowQuestInfo(Quest quest) { this.selectedQuest = quest; //이미 퀘스트를 클릭했을시 수락버튼을 비활성화 시킴 if (Questlog.instance.HasQuest(quest) && quest.IsComplete) { AcceptBtn.SetActive(false); completeBtn.SetActive(true); } else if (!Questlog.instance.HasQuest(quest)) { AcceptBtn.SetActive(true); } backBtn.SetActive(true); questArea.gameObject.SetActive(false); questDescription.SetActive(true); string objectives = "\n필요 아이템"; foreach (Objective obj in quest.MyCollectObjectives) { objectives += obj.MyType + ": " + obj.MyCurrentAmount + "/" + obj.MyAmount + "\n"; } questDescription.GetComponent <Text>().text = string.Format("<b>{0}\n\n</b><size=11>{1}\n\n</size><size=8>{2}</size>", quest.MyTitle, quest.MyDescription, objectives); }
private void Keys_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { AcceptBtn.PerformClick(); } if (e.KeyCode == Keys.Escape) { CloseBtn.PerformClick(); } }
///// <summary> ///// Deleting Curriculum ///// </summary> ///// <param string curriculumName= The name of curriculum to perform delete action></param> public void DeleteCurriculum(string curriculumName) { if (Browser.FindElements(Bys.CurriculumMngPage.NoRecordLbl).Count > 0) { } else { do { Browser.WaitForElement(Bys.AMAPage.LoadIcon, ElementCriteria.IsNotVisible); Browser.WaitForElement(Bys.CurriculumMngPage.CurriculumTemplateTbl, ElementCriteria.IsVisible); Thread.Sleep(0500); Actioncell.Click(); Deletecell.Click(); Thread.Sleep(0500); AcceptBtn.Click(); Browser.WaitForElement(Bys.AMAPage.LoadIcon, ElementCriteria.IsNotVisible); Browser.WaitForElement(Bys.CurriculumMngPage.CurriculumTemplateTbl, ElementCriteria.IsVisible); } while (Browser.FindElements(Bys.CurriculumMngPage.NoRecordLbl).Count <= 0); } }
/// <summary> /// Enters text in the username and password field, clicks the login button, then waits for the URL /// of the Library page to load /// </summary> /// <param name="userName"></param> /// <param name="password"></param> public dynamic UnassignCurriculum() { try { do { ActionBtn.Click(); UnassignCurriculumLnk.Click(); Thread.Sleep(0500); AcceptBtn.Click(); Browser.WaitForElement(Bys.AMAPage.LoadIcon, TimeSpan.FromSeconds(90), ElementCriteria.IsNotVisible); }while (ActionBtn.Displayed); } catch (NoSuchElementException) { GCEPPage Gcep = new GCEPPage(Browser); // Gcep.GMECompetencyEducationProgramLnk.Click(); Browser.Navigate().Back(); Gcep.WaitForInitialize(); return(Gcep); } return(null); }