Add a method of finding and applying settings with classic default value

This commit is contained in:
Dean Herbert
2022-04-22 18:04:43 +09:00
parent 7258a09748
commit 2a043aa6de
2 changed files with 41 additions and 1 deletions

View File

@ -9,5 +9,11 @@ namespace osu.Game.Overlays.Settings
public interface ISettingsItem : IDrawable, IDisposable
{
event Action SettingChanged;
/// <summary>
/// Apply the default values of a setting item, if the setting item specifies a "classic" default via <see cref="SettingsItem{T}.ApplyClassicDefault"/>.
/// </summary>
/// <param name="useClassicDefault">Whether to apply the classic value. If <c>false</c>, the standard default is applied.</param>
void ApplyClassicDefault(bool useClassicDefault);
}
}