コード例 #1
0
ファイル: MonoSettingImageTab.cs プロジェクト: slb1988/agame
 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();
 }
コード例 #2
0
ファイル: MonoSettingImageTab.cs プロジェクト: slb1988/agame
        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);
        }