Пример #1
0
    private void UpdateOfferAmountDropdown()
    {
        int maxAmount = 0;

        if (offerResourceDropdown.captionText.text == "Armies")
        {
            maxAmount = pm.currentLord.GetArmies();
        }
        else if (offerResourceDropdown.captionText.text == "Land")
        {
            maxAmount = pm.currentLord.GetLandCount();
        }
        else if (offerResourceDropdown.captionText.text == "Wealth")
        {
            maxAmount = pm.currentLord.GetWealth();
        }
        List <string> amounts = new List <string>();

        //get the max amount
        for (int i = 0; i <= maxAmount; i++)
        {
            amounts.Add(i.ToString());
        }
        offerAmountDropdown.ClearOptions();
        offerAmountDropdown.AddOptions(amounts);
        offerAmountDropdown.value = 0;
    }
Пример #2
0
    private void LoadResolutions()
    {
        resolutions = Screen.resolutions;

        resolutionDropdown.ClearOptions();

        int           currentResolutionIndex = 0;
        List <string> options = new List <string>();

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + "x" + resolutions[i].height;
            options.Add(option);

            if (resolutions[i].width == Screen.currentResolution.width && resolutions[i].height == Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);

        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }
Пример #3
0
    private void Start()
    {
        Cursor.lockState = CursorLockMode.None;
        Cursor.visible   = true;
        Time.timeScale   = 1f;

        resolutions = Screen.resolutions;
        resolutionDropdown.ClearOptions();

        List <string> options = new List <string>();

        int currentResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height;
            options.Add(option);

            if (resolutions[i].width == Screen.currentResolution.width &&
                resolutions[i].height == Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();

        var am = FindObjectOfType <AudioManager>();

        am?.StopAllSound();
        am?.Play("Menu Theme");
    }
    private void PopulateList()
    {
        string[]      enumNames = Enum.GetNames(typeof(GameDificult));
        List <string> names     = new List <string>(enumNames);

        difficultDroptown.AddOptions(names);
    }
Пример #5
0
    void Start()
    {
        //MasterMixer.SetFloat("MasterVolume", 20);
        int currentResIndex = 0;

        ScreenResolutions = Screen.resolutions;
        resolutionDropDown.ClearOptions();

        List <string> options = new List <string>();

        for (int i = 0; i < ScreenResolutions.Length; i++)
        {
            string option = ScreenResolutions[i].width + "x" + ScreenResolutions[i].height;
            options.Add(option);

            if (ScreenResolutions[i].width == Screen.currentResolution.width &&
                ScreenResolutions[i].height == Screen.currentResolution.height)
            {
                currentResIndex = i;
            }
        }

        resolutionDropDown.AddOptions(options);
        resolutionDropDown.value = currentResIndex;
        resolutionDropDown.RefreshShownValue();
    }
Пример #6
0
    private void Awake()
    {
        fullscreenToggle.isOn = Screen.fullScreen;

        resolutionDropdown.ClearOptions();    // Очистка всех вариантов выпадающего списка

        var options = new List <string>();
        var currentResolutionIndex = 0;

        for (var i = 0; i < Screen.resolutions.Length; i++)
        {
            var resolution = Screen.resolutions[i];

            options.Add($"{resolution.width} x {resolution.height} ({resolution.refreshRate} Hz)");

            if (resolution.height == Screen.currentResolution.height &&
                resolution.width == Screen.currentResolution.width &&
                resolution.refreshRate == Screen.currentResolution.refreshRate)
            {
                currentResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);    // Добавление списка опций в выпадающий список
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();

        masterMixer.GetFloat("volume", out var volume);
        volumeSlider.value = volume;
        musicMixer.GetFloat("volume", out volume);
        musicSlider.value = volume;
    }
        private void InitializeSettings()
        {
            resolutions = Screen.resolutions;

            resolutionDropDown.ClearOptions();

            List <string> options = new List <string>();

            int currentResolutionIndex = 0;

            for (int i = 0; i < resolutions.Length; i++)
            {
                string option = resolutions[i].width + " x " + resolutions[i].height;
                options.Add(option);
                if (resolutions[i].width == Screen.currentResolution.width && resolutions[i].height == Screen.currentResolution.height)
                {
                    currentResolutionIndex = i;
                }
            }
            resolutionDropDown.AddOptions(options);
            resolutionDropDown.value = currentResolutionIndex;
            resolutionDropDown.RefreshShownValue();

            // set correct quality on quality dropdown
            qualityDropDown.value = QualitySettings.GetQualityLevel();
        }
Пример #8
0
    void Start()
    {
        int currentResIndex = 0;

        ScreenResolutions = Screen.resolutions;
        resolutionDropDown.ClearOptions();
        difficultyDP.value = PlayerPrefs.GetInt("Difficulty");
        difficultyDP.RefreshShownValue();

        List <string> options = new List <string>();

        //PlayerPrefs.GetInt("Difficulty", 0);

        for (int i = 0; i < ScreenResolutions.Length; i++)
        {
            string option = ScreenResolutions[i].width + "x" + ScreenResolutions[i].height;
            options.Add(option);

            if (ScreenResolutions[i].width == Screen.currentResolution.width &&
                ScreenResolutions[i].height == Screen.currentResolution.height)
            {
                currentResIndex = i;
            }
        }

        resolutionDropDown.AddOptions(options);
        resolutionDropDown.value = currentResIndex;
        resolutionDropDown.RefreshShownValue();
    }
Пример #9
0
    void DrawItemTypeDropDown()
    {
        ItemTypeDropDown.onValueChanged.RemoveAllListeners();
        ItemTypeDropDown.ClearOptions();
        if (CurrentStation == null)
        {
            return;
        }
        List <TMP_Dropdown.OptionData> options = new List <TMP_Dropdown.OptionData>();

        foreach (ItemSystem.ItemTypes type in ValidTypes)
        {
            TMP_Dropdown.OptionData data = new TMP_Dropdown.OptionData();
            data.text = type.ToString();
            options.Add(data);
        }
        ItemTypeDropDown.AddOptions(options);
        ItemTypeDropDown.onValueChanged.AddListener(delegate
        {
            SelectItemType();
        });
        if (ItemTypeDropDown.options.Count > 0)
        {
            SelectItemType();
        }
    }
Пример #10
0
    private void Start()
    {
        baseScale = container.transform.localScale;
        HideContainer();

        resolutions = Screen.resolutions;

        resolutionDropDown.ClearOptions();

        int currentIndex = 0;

        List <string> options = new List <string>();

        for (int i = 0; i < resolutions.Length; i++)
        {
            if (resolutions[i].width == Screen.width && resolutions[i].height == Screen.height)
            {
                currentIndex = i;
            }

            string option = resolutions[i].width + "x" + resolutions[i].height;
            options.Add(option);
        }
        resolutionDropDown.AddOptions(options);
        resolutionDropDown.value = currentIndex;
        resolutionDropDown.RefreshShownValue();

        ChangeDropdownsLanguage();
    }
Пример #11
0
    void Awake()
    {
        Left_Hemph  = GameObject.FindGameObjectWithTag("Left_Hemp");
        Right_Hemph = GameObject.FindGameObjectWithTag("Right_Hemp");

        Corelations = new List <Corelation>();

        AtlasDropDown.AddOptions(new List <string>()
        {
            Atlas.DSK_Atlas, Atlas.DTX_Atlas, Atlas.CDK_Atlas, Atlas.A116_Atlas, Atlas.A90_Atlas
        });

        global.Atlas_Regions_dict_index = new Dictionary <int, IEnumerable <Region> >()
        {
            { 0, atlas.Desikan_Atlas },
            { 1, atlas.Destrieux_Atlas },
            { 2, atlas.Craddock_Atlas },
            { 3, atlas.Aal116_Atlas },
            { 4, atlas.Aal90_Atlas }
        };

        global.Atlas_Regions_value_pairs = new Dictionary <string, IEnumerable <Region> >()
        {
            { Atlas.DSK_Atlas, atlas.Desikan_Atlas },
            { Atlas.DTX_Atlas, atlas.Destrieux_Atlas },
            { Atlas.CDK_Atlas, atlas.Craddock_Atlas },
            { Atlas.A116_Atlas, atlas.Aal116_Atlas },
            { Atlas.A90_Atlas, atlas.Aal90_Atlas }
        };

        CorrelationController.UpdateWeightThr += UpdateWeightThr;
        ROIsController.UpdateROIthr           += ROIsController_UpdateROIthr;
    }
Пример #12
0
    void Start()
    {
        resolutions = Screen.resolutions;
        resolutionDropdown.ClearOptions();

        LoadPrefs();

        List <string> options = new List <string>();

        int currentResolutionIndex = 0;
        int i = 0;

        foreach (Resolution resolution in resolutions)
        {
            string option = resolution.width + " x " + resolution.height;
            options.Add(option);

            if (resolution.width == Screen.currentResolution.width && resolution.height == Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
            i++;
        }
        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();


        gameObject.SetActive(false);
    }
Пример #13
0
        private void GameDataCentre_AseetLoadStatusChang(object sender, AseetLoadStatusArgs e)
        {
            if (e.AseetLoadStatus == AseetLoadStatusArgs.LoadStatus.Completed)
            {
                if (e.AseetType == typeof(TileBase) &&
                    e.AseetName == "TileAsset")
                {
                    TileBase tileBase = GameDataCentre.TileAssetDict["border"];

                    marginMeshTilemap.InitHexMeshTileMap(tilemapBackground.size, tileBase);
                    dropdownTileAsset.interactable = true;
                    GameDataCentre.TileAssetDict.Keys.Select(key => key.RemoveNumber()).ToList();
                    List <string> options = new List <string>();
                    foreach (string key in GameDataCentre.TileAssetDict.Keys.Select(key => key.RemoveNumber()))
                    {
                        if (options.Contains(key) == false)
                        {
                            options.Add(key);
                        }
                    }
                    dropdownTileAsset.AddOptions(options);
                }

                if (e.AseetType == typeof(Dictionary <string, int>) &&
                    e.AseetName == "TerrainThroughCostDict")
                {
                    btnMake.interactable = true;

                    ReIntiHexGrid();
                }
            }
        }
Пример #14
0
    private void UpdateReceiveAmountDropdown()
    {
        int maxAmount = 0;

        if (receiveResourceDropdown.captionText.text == "Armies")
        {
            maxAmount = lordToOfferTrade.GetArmies();
        }
        else if (receiveResourceDropdown.captionText.text == "Land")
        {
            maxAmount = lordToOfferTrade.GetLandCount();
        }
        else if (receiveResourceDropdown.captionText.text == "Wealth")
        {
            maxAmount = lordToOfferTrade.GetWealth();
        }
        List <string> amounts = new List <string>();

        //get the max amount
        for (int i = 0; i <= maxAmount; i++)
        {
            amounts.Add(i.ToString());
        }
        receiveAmountDropdown.ClearOptions();
        receiveAmountDropdown.AddOptions(amounts);
        receiveAmountDropdown.value = 0;
    }
Пример #15
0
    private void Start()
    {
        dropdown.gameObject.SetActive(false);
        if (block.GetType() == typeof(BlockDetectCollider))
        {
            textBlock.text = "Detection de la Collision";
        }
        else if (block.GetType() == typeof(BlockDetectColor))
        {
            textBlock.text = "Detection de la Couleur";
        }
        else
        {
            switch (block.type)
            {
            case BlockType.Bool:
                textBlock.text = block.GetBool() ? "True" : "False";
                break;

            case BlockType.Color:
                textBlock.text = "Couleur";
                dropdown.gameObject.SetActive(true);
                dropdown.ClearOptions();
                List <string> colors = StatesColorExtends.ToList();
                dropdown.AddOptions(colors);
                StatesColor.StatesColorType color = block.GetColor();
                dropdown.SetValueWithoutNotify((int)color);
                break;
            }
        }
    }
Пример #16
0
    //Lädt aktuell gespeicherte Presets in ein Dropdownmenü
    public void FillPresetDropdown()
    {
        presetDropdown.ClearOptions();
        var presetKeys = SaveManager.GetPresetKeys <BoidPresetSaveData>(folderKey);

        presetDropdown.AddOptions(presetKeys);
    }
    private void Awake()
    {
        MasterVolumeSlider.value = masterVolume;
        MusicVolumeSlider.value  = musicVolume;
        SFXVolumeSlider.value    = sfxVolume;
        FullScreenToggle.SetIsOnWithoutNotify(Screen.fullScreen);
        FullScreenToggle.onValueChanged.AddListener(SetFullScreen);

        resolutions = Screen.resolutions;

        List <string> ops          = new List <string>(resolutions.Length);
        int           currentIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            Resolution r = resolutions[i];
            ops.Add($"{r.width}x{r.height}");
            if (r.width == Screen.width && r.height == Screen.height)
            {
                currentIndex = i;
            }
        }
        ResolutionDropdown.AddOptions(ops);
        ResolutionDropdown.RefreshShownValue();
        ResolutionDropdown.SetValueWithoutNotify(currentIndex);

        ResolutionDropdown.onValueChanged.AddListener(SetResolution);
    }
Пример #18
0
    // Start is called before the first frame update
    private void Start()
    {
        if (resolutionsDropdown != null)
        {
            resolutions = Screen.resolutions;
            resolutionsDropdown.ClearOptions();

            List <string> options = new List <string>();

            int currentResolutionIndex = 0;
            for (int i = 0; i < resolutions.Length; i++)
            {
                string option = resolutions[i].width + " x " + resolutions[i].height + " " + resolutions[i].refreshRate + "Hz";

                options.Add(option);

                if (resolutions[i].width == Screen.currentResolution.width && resolutions[i].height == Screen.currentResolution.height)
                {
                    currentResolutionIndex = i;
                }
            }

            resolutionsDropdown.AddOptions(options);
            resolutionsDropdown.value = currentResolutionIndex;
            resolutionsDropdown.RefreshShownValue();
        }

        if (fullscreenToggle != null)
        {
            fullscreenToggle.isOn = Screen.fullScreen;
        }
    }
    /// <summary>
    /// ワードセット情報を取得
    /// </summary>
    private void LoadWordsetMetadata()
    {
        // ドロップダウンの初期化
        UIDataSetName.ClearOptions();
        UILongDataSetName.ClearOptions();
        var wordsetListShort = new List <string>();
        var wordsetListLong  = new List <string>();

        valToShortWordset = new Dictionary <int, ShortWordsetData>();
        valToLongWordset  = new Dictionary <int, LongWordsetData>();
        var idx = 0;

        foreach (var wordData in WordsetData.ShortWordsetDict.Values)
        {
            wordsetListShort.Add(wordData.WordsetScreenName);
            valToShortWordset.Add(idx, wordData);
            idx++;
        }
        idx = 0;
        foreach (var wordData in WordsetData.LongWordsetDict.Values)
        {
            wordsetListLong.Add(wordData.WordsetScreenName);
            valToLongWordset.Add(idx, wordData);
            idx++;
        }
        UIDataSetName.AddOptions(wordsetListShort);
        UILongDataSetName.AddOptions(wordsetListLong);
    }
    void Start()
    {
        //create default list of resolutions and then clear them. Depends on computer used.
        resolutions = Screen.resolutions;
        resolutionDropdown.ClearOptions();

        int currentResolutionIndex = 0;

        //Since the AddOptions() method only takes in strings, must convert resolutions array into string
        List <string> options = new List <string>();

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height;
            options.Add(option);

            // this checks current monitor resolution to set it as default
            if (resolutions[i].width == Screen.currentResolution.width &&
                resolutions[i].height == Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
        }
        //finally add the options string list to the list of resolutions for the dropdown
        resolutionDropdown.AddOptions(options);

        //set program resolution to current monitor resolution
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }
Пример #21
0
    void Start()
    {
        resolutions = Screen.resolutions;
        resolutionDropdown.ClearOptions();

        // Build a list of resolution options for the dropdown menu
        List <string> resolutionOptions = new List <string>();

        int currentResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height; // TODO : maybe need to be inverted?
            resolutionOptions.Add(option);

            if (resolutions[i].width == Screen.currentResolution.width &&
                resolutions[i].height == Screen.currentResolution.height)
            {
                currentResolutionIndex = 1;
            }
        }

        resolutionDropdown.AddOptions(resolutionOptions);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }
Пример #22
0
    public void PrepareResolutionDropdown()
    {
        _resolutionDropdown.ClearOptions();
        var options                    = new List <string>();
        var currentResolution          = 0;
        var numberOfSkippedResolutions = 0;
        var filteredResolutions        = new List <Resolution>();

        for (int i = 0; i < resolutions.Length; i++)
        {
            if (resolutions[i].refreshRate < 50)
            {
                numberOfSkippedResolutions++;
                continue;
            }
            options.Add($"{resolutions[i].width} x {resolutions[i].height} @{resolutions[i].refreshRate}Hz");

            if (resolutions[i].width == Screen.width && resolutions[i].height == Screen.height &&
                resolutions[i].refreshRate == Screen.currentResolution.refreshRate)
            {
                currentResolution = i - numberOfSkippedResolutions;
            }
            filteredResolutions.Add(resolutions[i]);
        }

        _resolutionDropdown.AddOptions(options);
        _resolutionDropdown.value = currentResolution;
        resolutions = filteredResolutions.ToArray();
        _resolutionDropdown.RefreshShownValue();
    }
Пример #23
0
    public override void SetUpValues(Type ValueType, VariableViewerNetworking.NetFriendlyPage Page = null, VariableViewerNetworking.NetFriendlySentence Sentence = null, bool Iskey = false)
    {
        base.SetUpValues(ValueType, Page, Sentence, Iskey);
        string Variable = VVUIElementHandler.ReturnCorrectString(Page, Sentence, Iskey);

        TDropdown.ClearOptions();
        TDropdown.captionText.text = Variable;
        var           values   = Enum.GetValues(ValueType);
        List <string> llist    = new List <string>();
        int           Count    = 0;
        int           Selected = 0;

        foreach (var st in values)
        {
            if (st.ToString() == Variable)
            {
                Selected = Count;
            }
            llist.Add(st.ToString());
            Count++;
        }
        TDropdown.AddOptions(llist);
        TDropdown.value = Selected;
        TDropdown.onValueChanged.AddListener(ToggleValueChanged);
    }
Пример #24
0
    void Start()
    {
        domaManager = DomaManager.Instance;
        dropDown    = GetComponent <TMP_Dropdown>();

        dropDown.ClearOptions();
        dropDown.AddOptions(new List <string> {
            "Wszystko"
        });
        dropDown.AddOptions(currentStatusDoma.appSystem.Floors.Select(x => x.Name).ToList());

        dropDown.onValueChanged.AddListener(delegate
        {
            dropDownValueChangedHandler(dropDown);
        });
    }
Пример #25
0
    void updateResolutionList()
    {
        resolutions = Screen.resolutions;
        resolutionDropdown.ClearOptions();

        List <string> options = new List <string>();

        int currentResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height;
            options.Add(option);

            // Default to screen resolution.
            if (resolutions[i].width <= Screen.currentResolution.width && resolutions[i].height <= Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }
Пример #26
0
    // Start is called before the first frame update
    void Start()
    {
        // optionsMenuUI.SetActive(false);

        resolutions = Screen.resolutions;
        resolutionDropdown.ClearOptions();

        List <string> options = new List <string>();

        int currentResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height;
            options.Add(option);

            if (resolutions[i].width == Screen.currentResolution.width && resolutions[i].height == Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }
Пример #27
0
        private void InitializeCreatureList(Creature[] allThingsInArea)
        {
            if (initialized)
            {
                Debug.LogWarning("Initialize called on CreatureBrowser when already initialized");
            }
            creatureDropDown.ClearOptions();
            List <Creature> tempMap = new List <Creature>();
            List <TMP_Dropdown.OptionData> options = new List <TMP_Dropdown.OptionData>();

            for (int count = 0; count < allThingsInArea.Length; count++)
            {
                if (allThingsInArea[count].match(Thing.Base_Types.CREATURE))
                {
                    TMP_Dropdown.OptionData option = new TMP_Dropdown.OptionData(allThingsInArea[count].thingName);
                    options.Add(option);
                    tempMap.Add(allThingsInArea[count]);
                }
            }
            creatureMap = tempMap.ToArray();
            creatureDropDown.AddOptions(options);
            currentWindow = CreatureBrowserWindow.Creature_Detail_List;
            OnDropDownChange();
            initialized = true;
        }
Пример #28
0
    void Start()
    {
        updateEnable  = false;
        updateDisable = true;
        resolutions   = Screen.resolutions;
        resolutionDropdown.ClearOptions();
        List <string> options = new List <string>();

        int currentResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height;
            options.Add(option);
            if (resolutions[i].width == Screen.width && resolutions[i].height == Screen.height)
            {
                currentResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();

        UpdateSound();
    }
Пример #29
0
    void Start()
    {
        difficulty = prefabManager.GetComponent <PrefabManager>();

        resolutions = Screen.resolutions;

        resolutionDropdown.ClearOptions();

        List <string> options = new List <string>();

        int currenResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions[i].width + " x " + resolutions[i].height;
            options.Add(option);

            if (resolutions[i].width == Screen.currentResolution.width &&
                resolutions[i].height == Screen.currentResolution.height)
            {
                currenResolutionIndex = i;
            }
        }

        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currenResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }
Пример #30
0
    private void Start()
    {
        // get the list of available resolutions on this device
        resolutions = Screen.resolutions;
        // clear the options in the dropdown
        resolutionDropdown.ClearOptions();
        // create a new list for the available options
        List <string> options = new List <string> ();

        int currentResolutionIndex = 0;

        for (int i = 0; i < resolutions.Length; i++)
        {
            string option = resolutions [i].width + "x" + resolutions [i].height;
            options.Add(option);

            if (resolutions [i].width == Screen.currentResolution.width && resolutions [i].height == Screen.currentResolution.height)
            {
                currentResolutionIndex = i;
            }
        }
        resolutionDropdown.AddOptions(options);
        resolutionDropdown.value = currentResolutionIndex;
        resolutionDropdown.RefreshShownValue();
    }