RemoteTech.UI.OptionWindow.Window C# (CSharp) Method

Window() public method

Draws the content of the window
public Window ( int uid ) : void
uid int
return void
        public override void Window(int uid)
        {
            // push the current GUI.skin
            var pushSkin = GUI.skin;
            GUI.skin = HighLogic.Skin;

            GUILayout.BeginVertical(GUILayout.Width(OptionWindow.WINDOW_WIDTH), GUILayout.Height(OptionWindow.WINDOW_HEIGHT));
            {
                // Header image
                GUI.DrawTexture(new Rect(16, 25, OptionWindow.WINDOW_WIDTH - 14, 70), this.mTexHeadline);
                GUILayout.Space(70);

                this.drawOptionMenu();
                this.drawOptionContent();
            }
            GUILayout.EndVertical();

            if (GUILayout.Button("Close"))
            {
                this.Hide();
                RTSettings.OnSettingsChanged.Fire();
            }

            base.Window(uid);

            // pop back the saved skin
            GUI.skin = pushSkin;
        }