public override void Window(int id)
        {
            GUILayout.BeginHorizontal();
            {
                switch (mTab)
                {
                case FragmentTab.Attitude:
                    mAttitude.Draw();
                    break;

                case FragmentTab.Rover:
                    mRover.Draw();
                    break;

                case FragmentTab.Aerial:
                    mAerial.Draw();
                    break;

                case FragmentTab.Bifrost:
                    mBifrost.Draw();
                    break;
                }
                if (mQueueEnabled)
                {
                    mQueue.Draw();
                }
            }
            GUILayout.EndHorizontal();
            if (GUI.Button(new Rect(2, 2, 16, 16), "<"))
            {
                Tab--;
            }
            if (GUI.Button(new Rect(20, 2, 16, 16), ">"))
            {
                Tab++;
            }
            base.Window(id);
        }
Exemplo n.º 2
0
 public override void Window(int id)
 {
     GUI.skin = null;
     GUILayout.BeginHorizontal();
     {
         mAttitude.Draw();
         if (mQueueEnabled)
         {
             mQueue.Draw();
         }
         else
         {
             GUILayout.BeginVertical();
             {
                 GUILayout.BeginScrollView(Vector2.zero, GUILayout.ExpandHeight(true));
                 GUILayout.EndScrollView();
             }
             GUILayout.EndVertical();
         }
     }
     GUILayout.EndHorizontal();
     base.Window(id);
 }