Example #1
0
 public virtual void back(bool isHide = false, bool isPopup = true)
 {
     UI3System.HideGrayScreen(this);
     if (gameObject.activeInHierarchy)
     {
         OnBack(isHide);
     }
 }
Example #2
0
 public virtual void hide(bool isPopup = true)
 {
     isHideOnFullScreen = isPopup;
     UI3System.HideGrayScreen(this);
     if (gameObject.activeInHierarchy)
     {
         OnHide();
     }
 }
Example #3
0
    private void OnDestroyWithScale()
    {
        if (gameObject != null)
        {
            if (m_wndType == UI3WndType.PopUp)
            {
                //高斯模糊
                SetActiveRapidBlur(false);
            }

            if (OnClose != null)
            {
                OnClose();
                OnClose = null;
            }
            gameObject.SetActive(false);
            UI3System.HideGrayScreen(this);
            UI3System.destroyWindow(this.GetClassName(), gameObject);
        }
        UI3System.PopBack(this.GetClassName());
    }
Example #4
0
    private void OnBack(bool isHide = false)
    {
        UI3System.HideGrayScreen(this);
        if (gameObject != null)
        {
            if (isHide)
            {
                gameObject.SetActive(false);
                UI3System.HideWindow(this.GetClassName(), gameObject);
            }
            else
            {
                gameObject.SetActive(false);
                UI3System.destroyWindow(this.GetClassName(), gameObject);
            }

            if (OnClose != null)
            {
                OnClose();
                OnClose = null;
            }
            UI3System.BackPopup(this.GetClassName());
        }
    }
Example #5
0
 public virtual void HideGrayScreen()
 {
     UI3System.HideGrayScreen(this);
 }