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

Fix broken avatar masking when hiding

This commit is contained in:
Joseph Madamba 2024-05-05 22:27:21 -07:00
parent d0c8b55a0a
commit 8a474f7d22

View File

@ -212,7 +212,9 @@ namespace osu.Game.Online.Leaderboards
new Container
{
AutoSizeAxes = Axes.Both,
Child = avatar = new MaskedWrapper(
CornerRadius = corner_radius,
Masking = true,
Child = avatar = new DelayedLoadWrapper(
innerAvatar = new ClickableAvatar(user)
{
Anchor = Anchor.Centre,
@ -592,16 +594,6 @@ namespace osu.Game.Online.Leaderboards
public LocalisableString TooltipText { get; }
}
private partial class MaskedWrapper : DelayedLoadWrapper
{
public MaskedWrapper(Drawable content, double timeBeforeLoad = 500)
: base(content, timeBeforeLoad)
{
CornerRadius = corner_radius;
Masking = true;
}
}
private sealed partial class ColouredModSwitchTiny : ModSwitchTiny, IHasTooltip
{
private readonly IMod mod;