// Use this for initialization void Start() { //find the game manager, which has all the data we need from the previous level stored gameManager = GameObject.Find("GameManager"); YesButton = GameObject.Find("YesButton"); NoButton = GameObject.Find("NoButton"); DoneButton = GameObject.Find("Done"); AutoButton = GameObject.Find("Auto"); YesButton.SetActive(false); NoButton.SetActive(false); //display the pictures from the game manager ShowThumbnails(gameManager.GetComponent <Photography>().GetPhotographs()); textbox.CloseOnTextComplete = false; textbox.FeedText(Constants.ShowTed); textbox.DisplayText(); bigThumbnail.gameObject.SetActive(false); CreateIconDictionary(); currentState = GradeState.allThumbs; }
public void Delarge() { bigThumbnail.gameObject.SetActive(false); textbox.FeedText(Constants.ShowTed); textbox.DisplayText(); currentState = GradeState.allThumbs; ToggleInputButtons(false); }
//if user decided to return to selection public void DeconfirmDone() { //play sfx if applicable if (CancelSFX != null) { CancelSFX.Play(); } ConfirmScreen.SetActive(false); AutoButton.SetActive(true); DoneButton.SetActive(true); currentState = GradeState.allThumbs; }
//prompt the user to confirm that they want to exit the selection screen public void DoneButtonClick() { if (currentState == GradeState.allThumbs) { //play sfx if applicable if (ClickSFX != null) { ClickSFX.Play(); } ConfirmScreen.SetActive(true); ConfirmScreen.transform.Find("Text").GetComponent <Text>().text = Constants.ProceedPhotos.Replace(Constants.ParameterSTR, finalSelection.Count.ToString()); AutoButton.SetActive(false); DoneButton.SetActive(false); currentState = GradeState.doneConfirm; } }
//bring up image on click public void Enlarge(Image src) { if (!bigThumbnail.IsActive() && currentState == GradeState.allThumbs) { //play sfx if applicable if (ClickSFX != null) { ClickSFX.Play(); } selectedImage = src; bigThumbnail.sprite = src.sprite; bigThumbnail.gameObject.SetActive(true); textbox.FeedText(Constants.ConfirmSelectPhoto); textbox.DisplayText(); ToggleInputButtons(true); currentState = GradeState.bigThumb; } }