示例#1
0
 public static void setAsTopWindow(this TezWindow window)
 {
     if (window.transform.GetSiblingIndex() != window.transform.parent.childCount)
     {
         window.transform.SetAsLastSibling();
     }
 }
示例#2
0
 protected override void initWidget()
 {
     m_Window = this.transform.parent.GetComponent <TezWindow>();
     if (m_Window == null)
     {
         throw new ArgumentNullException("ParenWidget Not Found");
     }
 }
        protected override void onClose(bool self_close)
        {
            foreach (var child in m_Children)
            {
                child?.close();
            }
            m_Children.Clear();
            m_Children = null;

            window.removeSubwindow(this.subwindowID);
            window = null;
        }
        protected override void initWidget()
        {
            Transform parent = this.transform;

            do
            {
                parent      = parent.parent;
                this.window = parent.GetComponent <TezWindow>();
            } while (this.window == null);

            this.window.addSubwindow(this);
        }