Add the ability for settings items to have tooltips

This commit is contained in:
Dean Herbert
2021-02-11 16:38:17 +09:00
parent 3344e9f27f
commit dddd776802
2 changed files with 9 additions and 1 deletions

View File

@ -21,7 +21,7 @@ using osuTK;
namespace osu.Game.Overlays.Settings
{
public abstract class SettingsItem<T> : Container, IFilterable, ISettingsItem, IHasCurrentValue<T>
public abstract class SettingsItem<T> : Container, IFilterable, ISettingsItem, IHasCurrentValue<T>, IHasTooltip
{
protected abstract Drawable CreateControl();
@ -214,5 +214,7 @@ namespace osu.Game.Overlays.Settings
this.FadeColour(bindable.Disabled ? Color4.Gray : buttonColour, 200, Easing.OutQuint);
}
}
public string TooltipText { get; set; }
}
}