From fb495d77ce61ed833b26f8dc96f4b21d00f3670c Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 8 Nov 2021 13:22:57 +0900 Subject: [PATCH] Implement `TooltipText` directly --- .../Drawables/Cards/Statistics/BeatmapCardStatistic.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game/Beatmaps/Drawables/Cards/Statistics/BeatmapCardStatistic.cs b/osu.Game/Beatmaps/Drawables/Cards/Statistics/BeatmapCardStatistic.cs index 95d99b9128..f46926284f 100644 --- a/osu.Game/Beatmaps/Drawables/Cards/Statistics/BeatmapCardStatistic.cs +++ b/osu.Game/Beatmaps/Drawables/Cards/Statistics/BeatmapCardStatistic.cs @@ -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;