1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Fix links not working in partially masked text flow

This commit is contained in:
smoogipoo 2019-01-08 18:58:44 +09:00
parent 2ecbb23b63
commit da98915c0c

View File

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