1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Implement TooltipText directly

This commit is contained in:
Dean Herbert 2021-11-08 13:22:57 +09:00
parent 0e09edfce2
commit fb495d77ce

View File

@ -31,7 +31,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Statistics
set => spriteText.Text = value;
}
protected LocalisableString TooltipText { get; set; }
public LocalisableString TooltipText { get; protected set; }
private readonly SpriteIcon spriteIcon;
private readonly OsuSpriteText spriteText;
@ -72,7 +72,6 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Statistics
#region Tooltip implementation
LocalisableString IHasTooltip.TooltipText => TooltipText;
public virtual ITooltip GetCustomTooltip() => null;
public virtual object TooltipContent => null;