UnityEditor.ColorPicker.DoColorSliders C# (CSharp) Method

DoColorSliders() private method

private DoColorSliders ( ) : void
return void
        private void DoColorSliders()
        {
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.ExpandWidth(false) };
            if (GUILayout.Button(styles.sliderCycle, GUIStyle.none, options))
            {
                this.m_SliderMode = (this.m_SliderMode + 1) % ((SliderMode) 2);
            }
            GUILayout.EndHorizontal();
            GUILayout.Space(7f);
            switch (this.m_SliderMode)
            {
                case SliderMode.RGB:
                    this.RGBSliders();
                    break;

                case SliderMode.HSV:
                    this.HSVSliders();
                    break;
            }
            if (this.m_ShowAlpha)
            {
                this.m_AlphaTexture = Update1DSlider(this.m_AlphaTexture, 0x20, 0f, 0f, ref this.m_OldAlpha, ref this.m_OldAlpha, 3, false, 1f, -1f, false, this.m_HDRValues.m_TonemappingType);
                float displayScale = !this.m_HDR ? 255f : 1f;
                string formatString = !this.m_HDR ? EditorGUI.kIntFieldFormatString : EditorGUI.kFloatFieldFormatString;
                this.m_A = this.TexturedSlider(this.m_AlphaTexture, "A", this.m_A, 0f, 1f, displayScale, formatString, null);
            }
        }