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

drawVisualStyleContent() private method

Draws the content of the VisualStyle section
private drawVisualStyleContent ( ) : void
return void
        private void drawVisualStyleContent()
        {
            GUILayout.BeginHorizontal();
            {
                GUILayout.Label("Dish Connection Color:", GUILayout.Width(OptionWindow.WINDOW_WIDTH * 0.75f));
                if(GUILayout.Button(this.mVSColorDish, GUILayout.Width(18)))
                {
                    this.dishSlider = !this.dishSlider;
                }
            }
            GUILayout.EndHorizontal();

            if (this.dishSlider)
            {
                this.mSettings.DishConnectionColor = this.drawColorSlider(this.mSettings.DishConnectionColor);
                this.loadColorTexture(out this.mVSColorDish, this.mSettings.DishConnectionColor);
            }

            GUILayout.BeginHorizontal();
            {
                GUILayout.Label("Omni Connection Color:", GUILayout.Width(OptionWindow.WINDOW_WIDTH * 0.75f));
                if(GUILayout.Button(this.mVSColorOmni, GUILayout.Width(18)))
                {
                    this.omniSlider = !this.omniSlider;
                }
            }
            GUILayout.EndHorizontal();

            if (this.omniSlider)
            {
                this.mSettings.OmniConnectionColor = this.drawColorSlider(this.mSettings.OmniConnectionColor);
                this.loadColorTexture(out this.mVSColorOmni, this.mSettings.OmniConnectionColor);
            }

            GUILayout.BeginHorizontal();
            {
                GUILayout.Label("Active Connection Color:", GUILayout.Width(OptionWindow.WINDOW_WIDTH * 0.75f));
                if(GUILayout.Button(this.mVSColorActive, GUILayout.Width(18)))
                {
                    this.activeSlider = !this.activeSlider;
                }
            }
            GUILayout.EndHorizontal();

            if (this.activeSlider)
            {
                this.mSettings.ActiveConnectionColor = this.drawColorSlider(this.mSettings.ActiveConnectionColor);
                this.loadColorTexture(out this.mVSColorActive, this.mSettings.ActiveConnectionColor);
            }

            GUILayout.BeginHorizontal();
            {
                GUILayout.Label("Remote Station Color:", GUILayout.Width(OptionWindow.WINDOW_WIDTH * 0.75f));
                if (GUILayout.Button(this.mVSColorRemoteStation, GUILayout.Width(18)))
                {
                    this.remoteStationSlider = !this.remoteStationSlider;
                }
            }
            GUILayout.EndHorizontal();

            if (this.remoteStationSlider)
            {
                this.mSettings.RemoteStationColorDot = this.drawColorSlider(this.mSettings.RemoteStationColorDot);
                this.loadColorTexture(out this.mVSColorRemoteStation, this.mSettings.RemoteStationColorDot);
            }

            GUILayout.Space(10);
            GUILayout.BeginScrollView(new Vector2(), false, false, GUILayout.Height(10));
            { }
            GUILayout.EndScrollView();
            GUILayout.Space(10);

            this.mSettings.HideGroundStationsBehindBody = GUILayout.Toggle(this.mSettings.HideGroundStationsBehindBody, (this.mSettings.HideGroundStationsBehindBody) ? "Ground Stations are hidden behind bodies" : "Ground Stations always shown");
            GUILayout.Label("ON: Ground Stations are occluded by the planet or body, and are not visible behind it.\nOFF: Ground Stations are always shown (see range option below).", this.mGuiHintText);

            this.mSettings.HideGroundStationsOnDistance = GUILayout.Toggle(this.mSettings.HideGroundStationsOnDistance, (this.mSettings.HideGroundStationsOnDistance) ? "Ground Stations are hidden at a defined distance" : "Ground Stations always shown");
            GUILayout.Label("ON: Ground Stations will not be shown past a defined distance to the mapview camera.\nOFF: Ground Stations are shown regardless of distance.", this.mGuiHintText);

            this.mSettings.ShowMouseOverInfoGroundStations = GUILayout.Toggle(this.mSettings.ShowMouseOverInfoGroundStations, (this.mSettings.ShowMouseOverInfoGroundStations) ? "Mouseover of Ground Stations enabled" : "Mouseover of Ground Stations disabled");
            GUILayout.Label("ON: Some useful information is shown when you mouseover a Ground Station on the map view or Tracking Station.\nOFF: Information isn't shown during mouseover.", this.mGuiHintText);
        }