Draw() public method

public Draw ( ) : void
return void
コード例 #1
0
ファイル: FocusOverlay.cs プロジェクト: ozraven/RemoteTech
        // 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
ファイル: FocusOverlay.cs プロジェクト: windvlaag/RemoteTech
        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();
            }
        }