Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Assets/Script/Menu/ProfileList/ProfileSidebar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public void UpdateSidebar(YargProfile profile, ProfileView profileView)
_rangeDisabledToggle.isOn = profile.RangeEnabled;
_openLaneDisplayTypeDropdown.value = _openLaneDisplayTypesByIndex.IndexOf(profile.OpenLaneDisplayType);
_useCymbalModelsToggle.isOn = profile.UseCymbalModels;

// Update preset dropdowns
_engineDropdown.SetValueWithoutNotify(
_enginePresetsByIndex.IndexOf(profile.EnginePreset));
Expand All @@ -270,6 +270,12 @@ public void UpdateSidebar(YargProfile profile, ProfileView profileView)
_rockMeterPresetDropdown.SetValueWithoutNotify(
_rockmeterPresetsByIndex.IndexOf(profile.RockMeterPreset));

// Not all game modes support all engine presets.
// If the current engine doesn't exist for the selected instrument, the above _engineDropdown
// will be silently set to index 0, but the engine itself will not have been set, so we need
// to explicitly set it.
ChangeEngine();

// Show the proper name container (hide the editing version)
_nameContainer.SetActive(true);
_editNameContainer.SetActive(false);
Expand Down