Delay loading of cover backgrounds in score panels

This commit is contained in:
smoogipoo
2020-07-28 20:34:09 +09:00
parent 3ec659b7b5
commit 54d2f2c8cd
2 changed files with 8 additions and 2 deletions

View File

@ -146,11 +146,14 @@ namespace osu.Game.Screens.Ranking
Children = new[]
{
middleLayerBackground = new Box { RelativeSizeAxes = Axes.Both },
new UserCoverBackground
new DelayedLoadUnloadWrapper(() => new UserCoverBackground
{
RelativeSizeAxes = Axes.Both,
User = Score.User,
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0.5f), Color4Extensions.FromHex("#444").Opacity(0))
}, 300, 5000)
{
RelativeSizeAxes = Axes.Both
},
}
},