Esempio n. 1
0
 //分辨率改变
 public void OnResolutionChange()
 {
     if (initingVedioData)
     {
         return;
     }
     //if(FullScreen.isOn)
     //{
     //    Resolution.interactable = false;
     //}
     ImageSetting.SetResolution(Resolution.options[Resolution.value].text, FullScreen.isOn);
 }
Esempio n. 2
0
        public void OnFullScreenBtnClick()
        {
            if (initingVedioData)
            {
                return;
            }
            if (FullScreen.isOn)
            {
                Resolution.interactable = false;

                int index = ImageSetting.GetResolutionIndex(ImageSetting.systemResolutions);
                if (index == Resolution.value)
                {
                    ImageSetting.SetResolution(ImageSetting.systemResolutions, true);
                }
                else
                {
                    Resolution.value = index;
                }

                if (!ImageSetting.isSupportFullScreen)
                {
                    if (notSupportFullSceen)
                    {
                        notSupportFullSceen.enabled = true;
                    }
                }
            }
            else
            {
                Resolution.interactable = true;

                int index = ImageSetting.GetResolutionIndex(ImageSetting.lastWindowResoultion);

                if (index == Resolution.value)
                {
                    ImageSetting.SetResolution(ImageSetting.lastWindowResoultion, false);
                }
                else
                {
                    Resolution.value = index;
                }

                if (!ImageSetting.isSupportFullScreen)
                {
                    if (notSupportFullSceen)
                    {
                        notSupportFullSceen.enabled = false;
                    }
                }
            }
        }
    public override void OnEnter()
    {
        PlayerSettingLocalConfig.Instance.Load(ViewConfigManager.GetConfigFullPath("PlayerLocalSetting.csv", false));

        ImageSetting.Init();

        PerformanceCheckManager.Instance.flowShareData.oldAsyncCout   = QualitySettings.vSyncCount;
        PerformanceCheckManager.Instance.flowShareData.oldTargetFrame = Application.targetFrameRate;

        QualitySettings.vSyncCount = 0;

        ImageSetting.SetResolution(ImageSetting.systemResolutions, true, true);
        PerformanceCheckManager.Instance.flowShareData.currentCheckTime = PerformanceCheckManager.HoldDuringCheckTime;
        PerformanceCheckManager.Instance.flowShareData.StartCheckTimer  = true;
        PerformanceCheckManager.Instance.flowShareData.CheckUI.OnUpdate();
    }
Esempio n. 4
0
    void NotSupportBestImangeEffect_ChooseDownResolution()
    {
        //WaitingSelect = false;
        //PerformanceCheckUI_Reslut uiInstance = PerformanceCheckManager.Instance.flowShareData.ui_Reslut;
        //uiInstance.tips.text = "测试完成,您可以在<color=red>登入游戏后按[ESC]->视频设置</color>中修改您的选项。正在进入游戏.....";

        //uiInstance.ConfigOneBtn.onClick.RemoveAllListeners();
        //uiInstance.ConfigTwoBtn.onClick.RemoveAllListeners();
        //uiInstance.ConfigTwoRoot.SetActive(false);
        //uiInstance.ConfigOneRoot.SetActive(false);

        ImageSetting.GetData().AdvanceImageEffectEnabled = 1;
        ImageSetting.SetResolution(TargetResolution, false);
        ImageSetting.Clear();
        EndPerformanceCheck();
    }