1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Fixed a bug where the hover wouldn't work correctly due to OsuLinkSpriteText assigning Action to a private property.

This commit is contained in:
FreezyLemon 2017-12-07 13:57:29 +01:00
parent 5ded6e877c
commit ca40db2b97

View File

@ -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;
}
}
}