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

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

            // this triggers a repaint
            Parent.Redraw();
        }
Beispiel #4
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();
        }
Beispiel #5
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();
        }