public void UpdateDropdownOptions()
    {
        LogManager.Get().UpdateRecognizedLogFiles();

        List <string> lstLogFileNames = LogManager.Get().lstLogFiles.ConvertAll(fileinfo => fileinfo.Name);

        LibView.SetDropdownOptions(dropdownLogFileSelector, lstLogFileNames);
    }
예제 #2
0
    public void InitSavedLoadoutsDropdown()
    {
        LibView.SetDropdownOptions(dropdownSavedLoadouts, LoadoutManager.LoadAllLoadoutNamesForChr(ChrTypeSelectingFor()));

        dropdownSavedLoadouts.value = 0;

        dropdownSavedLoadouts.RefreshShownValue();
    }
    public void UpdateDropdownOptions()
    {
        LibView.SetDropdownOptions(dropdown, CharType.GetAllChrNames());

        //Ensure the default-selected option for this dropdown is mirroring the default in the matchsetup
        dropdown.SetValueWithoutNotify((int)NetworkMatchSetup.GetCharacterSelection(plyrselectorParent.idPlayer, idChr));

        dropdown.RefreshShownValue();
    }