2019-12-20 17:00:04 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2019-12-20 17:00:04 +08:00
|
|
|
using System;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Settings
|
|
|
|
{
|
|
|
|
public interface ISettingsItem : IDrawable, IDisposable
|
|
|
|
{
|
|
|
|
event Action SettingChanged;
|
2022-04-22 17:04:43 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2022-04-27 14:59:39 +08:00
|
|
|
/// Whether this setting has a classic default (ie. a different default which better aligns with osu-stable expectations).
|
2022-04-22 17:04:43 +08:00
|
|
|
/// </summary>
|
2022-04-27 14:59:39 +08:00
|
|
|
bool HasClassicDefault { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Apply the classic default value of the associated setting. Will throw if <see cref="HasClassicDefault"/> is <c>false</c>.
|
|
|
|
/// </summary>
|
|
|
|
void ApplyClassicDefault();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Apply the default value of the associated setting.
|
|
|
|
/// </summary>
|
|
|
|
void ApplyDefault();
|
2019-12-20 17:00:04 +08:00
|
|
|
}
|
|
|
|
}
|