Draw() 공개 메소드

public Draw ( ) : void
리턴 void
예제 #1
0
        // Fixed drawing mechanics
        public void Draw()
        {
            if (!mShowOverlay)
            {
                return;
            }

            GUILayout.BeginArea(PositionFrame);
            {
                mFocus.Draw();
            }
            GUILayout.EndArea();
        }
예제 #2
0
        // Fixed drawing mechanics
        public void Draw()
        {
            if (!mShowOverlay)
            {
                return;
            }

            GUILayout.BeginArea(PositionFrame);
            {
                // Refer to the idential codes in AbstractWindow.cs
                InputLockManager.RemoveControlLock("RTMapViewSatelliteList");
                if (this.PositionFrame.ContainsMouse())
                {
                    InputLockManager.SetControlLock(ControlTypes.CAMERACONTROLS | ControlTypes.MAP, "RTMapViewSatelliteList");
                }
                mFocus.Draw();
            }
            GUILayout.EndArea();
        }
예제 #3
0
        public void Draw()
        {
            if (!mShowOverlay)
            {
                return;
            }
            GUI.depth = 0;
            GUI.skin  = HighLogic.Skin;

            GUILayout.BeginArea(PositionButton);
            {
                mEnabled = GUILayout.Toggle(mEnabled, Texture.Satellite, Style.Button);
            }
            GUILayout.EndArea();

            if (mEnabled)
            {
                GUILayout.BeginArea(PositionFrame);
                {
                    mFocus.Draw();
                }
                GUILayout.EndArea();
            }
        }