Exemple #1
0
 // Token: 0x060024E3 RID: 9443 RVA: 0x000A0DF0 File Offset: 0x0009EFF0
 public void SubmitCurrentValue()
 {
     if (this.resolutionDropdown.value == -1 || this.refreshRateDropdown.value == -1)
     {
         return;
     }
     ResolutionControl.ResolutionOption resolutionOption = this.resolutionOptions[this.resolutionDropdown.value];
     base.SubmitSetting(string.Format(CultureInfo.InvariantCulture, "{0}x{1}x{2}", resolutionOption.size.x, resolutionOption.size.y, resolutionOption.supportedRefreshRates[this.refreshRateDropdown.value]));
 }
Exemple #2
0
        // Token: 0x060024DE RID: 9438 RVA: 0x000A0CC0 File Offset: 0x0009EEC0
        private void GenerateRefreshRateOptions()
        {
            this.refreshRateDropdown.ClearOptions();
            ResolutionControl.ResolutionOption currentSelectedResolutionOption = this.GetCurrentSelectedResolutionOption();
            if (currentSelectedResolutionOption == null)
            {
                return;
            }
            List <TMP_Dropdown.OptionData> list = new List <TMP_Dropdown.OptionData>();

            foreach (int num in currentSelectedResolutionOption.supportedRefreshRates)
            {
                list.Add(new TMP_Dropdown.OptionData(num.ToString() + "Hz"));
            }
            this.refreshRateDropdown.AddOptions(list);
            int num2 = currentSelectedResolutionOption.supportedRefreshRates.IndexOf(Screen.currentResolution.refreshRate);

            if (num2 == -1)
            {
                num2 = currentSelectedResolutionOption.supportedRefreshRates.Count - 1;
            }
            this.refreshRateDropdown.value = num2;
        }