// Fixed drawing mechanics public void Draw() { if (!mShowOverlay) { return; } GUILayout.BeginArea(PositionFrame); { mFocus.Draw(); } GUILayout.EndArea(); }
// 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(); }
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(); } }