Esempio n. 1
0
 private void SwitchView(Subview from, Subview to)
 {
     GUI.FocusControl(null);
     if (from != null)
     {
         from.OnDisable();
     }
     to.OnEnable();
     Refresh();
 }
Esempio n. 2
0
        private void SwitchView(Subview fromView, Subview toView)
        {
            GUI.FocusControl(null);

            if (fromView != null)
            {
                fromView.OnDisable();
            }
            toView.OnEnable();

            // this triggers a repaint
            Parent.Redraw();
        }
Esempio n. 3
0
        private void SwitchView(Subview fromView, Subview toView)
        {
            GUI.FocusControl(null);

            if (fromView != null)
            {
                fromView.OnDisable();
            }
            toView.OnEnable();
            titleContent = new GUIContent(ActiveView.Title, Styles.SmallLogo);

            // this triggers a repaint
            Repaint();
        }
Esempio n. 4
0
        private void SwitchView(Subview fromView, Subview toView)
        {
            GUI.FocusControl(null);

            if (fromView != null)
            {
                fromView.OnDisable();
            }
            toView.OnEnable();
            toView.OnDataUpdate();

            // this triggers a repaint
            Repaint();
        }