mirror of
https://github.com/osukey/osukey.git
synced 2025-06-27 22:27:57 +09: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:
parent
5ded6e877c
commit
ca40db2b97
@ -51,7 +51,12 @@ namespace osu.Game.Graphics.Sprites
|
|||||||
if (!string.IsNullOrEmpty(value))
|
if (!string.IsNullOrEmpty(value))
|
||||||
{
|
{
|
||||||
url = value;
|
url = value;
|
||||||
|
|
||||||
content.Action = onClickAction;
|
content.Action = onClickAction;
|
||||||
|
|
||||||
|
// For inheriting classes
|
||||||
|
if (Content is OsuHoverContainer hover)
|
||||||
|
hover.Action = onClickAction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user