Пример #1
0
 public void bringTop()
 {
     UI3System.bringTop(gameObject);
     UI3System.UIStackBringTop(this.GetClassName());
     isBringTop = true;
     UI3System.ShowGrayScreen(this);
 }
Пример #2
0
 public virtual void back(bool isHide = false, bool isPopup = true)
 {
     UI3System.HideGrayScreen(this);
     if (gameObject.activeInHierarchy)
     {
         OnBack(isHide);
     }
 }
Пример #3
0
 public virtual void hide(bool isPopup = true)
 {
     isHideOnFullScreen = isPopup;
     UI3System.HideGrayScreen(this);
     if (gameObject.activeInHierarchy)
     {
         OnHide();
     }
 }
Пример #4
0
    public int getMinDepth()
    {
        if (this == null || this.gameObject == null)
        {
            return(0);
        }

        return(UI3System.getMinDepth(this.gameObject));
    }
Пример #5
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());
    }
Пример #6
0
    private void OnShow()
    {
        if (m_wndType == UI3WndType.PopUp)
        {
            //高斯模糊
            SetActiveRapidBlur(true);
        }

        gameObject.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
        gameObject.SetActive(true);

        if (OnFinshShow != null)
        {
            OnFinshShow();
            OnFinshShow = null;
        }

        UI3System.PushBack(this.GetClassName());
        UI3System.ShowGrayScreen(this);
        bringTop();
    }
Пример #7
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());
        }
    }
Пример #8
0
 public void SetDepth(int depth)
 {
     _depth = depth;
     UI3System.setDepth(gameObject, _depth);
 }
Пример #9
0
 public void reshow()
 {
     UI3System.SetTop(this.GetClassName());
     this.show();
 }
Пример #10
0
 public virtual void HideGrayScreen()
 {
     UI3System.HideGrayScreen(this);
 }
Пример #11
0
 public void setDepth(int depth)
 {
     UI3System.setDepth(this.gameObject, depth);
 }
Пример #12
0
 public void addDepth(int depth)
 {
     UI3System.addDepth(this.gameObject, depth);
 }