UnityEditor.ColorPicker.SpecialHDRBrightnessHandling C# (CSharp) Method

SpecialHDRBrightnessHandling() private method

private SpecialHDRBrightnessHandling ( Rect boxPos, Rect sliderPos ) : void
boxPos UnityEngine.Rect
sliderPos UnityEngine.Rect
return void
        private void SpecialHDRBrightnessHandling(Rect boxPos, Rect sliderPos)
        {
            if ((this.m_ColorBoxMode == ColorBoxMode.SV_H) || (this.m_ColorBoxMode == ColorBoxMode.HV_S))
            {
                float scrollWheelDeltaInRect = this.GetScrollWheelDeltaInRect(boxPos);
                if (scrollWheelDeltaInRect != 0f)
                {
                    this.SetMaxDisplayBrightness(this.m_HDRValues.m_HDRScaleFactor - (scrollWheelDeltaInRect * 0.05f));
                }
                Rect rect = new Rect(0f, boxPos.y - 7f, boxPos.x - 2f, 14f);
                Rect dragRect = rect;
                dragRect.y += rect.height;
                EditorGUI.BeginChangeCheck();
                float brightness = EditableAxisLabel(rect, dragRect, this.m_HDRValues.m_HDRScaleFactor, 1f, this.m_HDRConfig.maxBrightness, styles.axisLabelNumberField);
                if (EditorGUI.EndChangeCheck())
                {
                    this.SetMaxDisplayBrightness(brightness);
                }
            }
            if (this.m_ColorBoxMode == ColorBoxMode.HS_V)
            {
                Rect rect3 = new Rect(sliderPos.xMax + 2f, sliderPos.y - 7f, (base.position.width - sliderPos.xMax) - 2f, 14f);
                Rect rect4 = rect3;
                rect4.y += rect3.height;
                EditorGUI.BeginChangeCheck();
                float num5 = EditableAxisLabel(rect3, rect4, this.m_HDRValues.m_HDRScaleFactor, 1f, this.m_HDRConfig.maxBrightness, styles.axisLabelNumberField);
                if (EditorGUI.EndChangeCheck())
                {
                    this.SetMaxDisplayBrightness(num5);
                }
            }
        }