public void ShowEditActivityPopup() { Debug.Log("Show popup request"); if (type == ListElementType.draft || type == ListElementType.proposed || type == ListElementType.rejected || type == ListElementType.paired) { editActivityPopUp.isReadonly = false; } else if (type == ListElementType.accepted) { editActivityPopUp.isReadonly = true; } if (parentPopUpView != null) { parentPopUpView.Hide(); editActivityPopUp.presentingViewController = parentPopUpView; } editActivityPopUp.setID(this.id); editActivityPopUp.Show(); }
public virtual void Show() { canvasGroup.alpha = 1; canvasGroup.blocksRaycasts = true; if (presentingViewController != null) { presentingViewController.Hide(); } popupView.Show(); OnBecomesVisible.Invoke(); Debug.LogWarning("Showing popup" + name); }