mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:22:56 +08:00
Delay loading of cover backgrounds in score panels
This commit is contained in:
parent
3ec659b7b5
commit
54d2f2c8cd
@ -70,11 +70,14 @@ namespace osu.Game.Screens.Ranking.Contracted
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4Extensions.FromHex("444")
|
Colour = Color4Extensions.FromHex("444")
|
||||||
},
|
},
|
||||||
new UserCoverBackground
|
new DelayedLoadUnloadWrapper(() => new UserCoverBackground
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
User = score.User,
|
User = score.User,
|
||||||
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0.5f), Color4Extensions.FromHex("#444").Opacity(0))
|
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0.5f), Color4Extensions.FromHex("#444").Opacity(0))
|
||||||
|
}, 300, 5000)
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
|
@ -146,11 +146,14 @@ namespace osu.Game.Screens.Ranking
|
|||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
middleLayerBackground = new Box { RelativeSizeAxes = Axes.Both },
|
middleLayerBackground = new Box { RelativeSizeAxes = Axes.Both },
|
||||||
new UserCoverBackground
|
new DelayedLoadUnloadWrapper(() => new UserCoverBackground
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
User = Score.User,
|
User = Score.User,
|
||||||
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0.5f), Color4Extensions.FromHex("#444").Opacity(0))
|
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0.5f), Color4Extensions.FromHex("#444").Opacity(0))
|
||||||
|
}, 300, 5000)
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user