From ca40db2b97836d1a6ecabebe14a37cbdbea3d556 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Thu, 7 Dec 2017 13:57:29 +0100 Subject: [PATCH] Fixed a bug where the hover wouldn't work correctly due to OsuLinkSpriteText assigning Action to a private property. --- osu.Game/Graphics/Sprites/OsuLinkSpriteText.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game/Graphics/Sprites/OsuLinkSpriteText.cs b/osu.Game/Graphics/Sprites/OsuLinkSpriteText.cs index d99562092d..ad5045ff10 100644 --- a/osu.Game/Graphics/Sprites/OsuLinkSpriteText.cs +++ b/osu.Game/Graphics/Sprites/OsuLinkSpriteText.cs @@ -51,7 +51,12 @@ namespace osu.Game.Graphics.Sprites if (!string.IsNullOrEmpty(value)) { url = value; + content.Action = onClickAction; + + // For inheriting classes + if (Content is OsuHoverContainer hover) + hover.Action = onClickAction; } } }