mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Removed private OsuHoverContainer "content" from OsuLinkSpriteText for more customization.
This commit is contained in:
@ -13,18 +13,12 @@ namespace osu.Game.Graphics.Sprites
|
||||
{
|
||||
public class OsuLinkSpriteText : OsuSpriteText
|
||||
{
|
||||
private readonly OsuClickableContainer content;
|
||||
|
||||
public override bool HandleInput => content.Action != null;
|
||||
|
||||
protected override Container<Drawable> Content => content ?? (Container<Drawable>)this;
|
||||
|
||||
protected override IEnumerable<Drawable> FlowingChildren => Children;
|
||||
|
||||
protected override bool OnClick(InputState state)
|
||||
{
|
||||
OnLinkClicked();
|
||||
return true;
|
||||
return base.OnClick(state);
|
||||
}
|
||||
|
||||
private string url;
|
||||
@ -42,14 +36,6 @@ namespace osu.Game.Graphics.Sprites
|
||||
}
|
||||
}
|
||||
|
||||
public OsuLinkSpriteText()
|
||||
{
|
||||
AddInternal(content = new OsuClickableContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
});
|
||||
}
|
||||
|
||||
public ColourInfo TextColour
|
||||
{
|
||||
get { return Content.Colour; }
|
||||
|
Reference in New Issue
Block a user