public void SetupView() { base.transform.FindChild("Content/RT/3dModel").GetComponent <MonoGammaSettingRenderImage>().SetupView(); GraphicsSettingData.ApplyPersonalContrastDelta(); this._contrastSlider = base.transform.FindChild("Content/Contrast/Slider").GetComponent <Slider>(); this.RecoverOriginState(); }
private void RecoverOriginState() { GraphicsSettingData.ApplyPersonalContrastDelta(); GraphicsSettingData.CopyPersonalContrastDelta(ref this._contrastDelta); int showValue = ((int)((((float)(this._contrastShowMaxValue - this._contrastShowMinValue)) / 2f) * (this._contrastDelta + 1f))) + this._contrastShowMinValue; this._contrastSlider.value = showValue; this.ShowContrast(showValue); }