public void UpdateDropdownOptions() { LogManager.Get().UpdateRecognizedLogFiles(); List <string> lstLogFileNames = LogManager.Get().lstLogFiles.ConvertAll(fileinfo => fileinfo.Name); LibView.SetDropdownOptions(dropdownLogFileSelector, lstLogFileNames); }
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(); }