mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 21:27:24 +08:00
Fix links not working in partially masked text flow
This commit is contained in:
parent
2ecbb23b63
commit
da98915c0c
@ -79,6 +79,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
{
|
{
|
||||||
AddInternal(new DrawableLinkCompiler(drawables.OfType<SpriteText>().ToList())
|
AddInternal(new DrawableLinkCompiler(drawables.OfType<SpriteText>().ToList())
|
||||||
{
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
TooltipText = tooltipText ?? (url != text ? url : string.Empty),
|
TooltipText = tooltipText ?? (url != text ? url : string.Empty),
|
||||||
Action = action ?? (() =>
|
Action = action ?? (() =>
|
||||||
{
|
{
|
||||||
@ -122,5 +123,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override IEnumerable<Drawable> FlowingChildren => base.FlowingChildren.Where(c => !(c is DrawableLinkCompiler));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user