mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 23:07:26 +08:00
Use DelayedLoadWrapper in DirectPanel backgrounds
This commit is contained in:
parent
d541006134
commit
1162df96be
@ -36,13 +36,13 @@ namespace osu.Game.Overlays.Direct
|
||||
|
||||
protected Drawable GetBackground(TextureStore textures, bool doubleSize)
|
||||
{
|
||||
return new AsyncLoadWrapper(new BeatmapSetBackgroundSprite(SetInfo, doubleSize)
|
||||
return new DelayedLoadWrapper(new BeatmapSetBackgroundSprite(SetInfo, doubleSize)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
FillMode = FillMode.Fill,
|
||||
OnLoadComplete = d => d.FadeInFromZero(400, EasingTypes.Out),
|
||||
}) { RelativeSizeAxes = Axes.Both };
|
||||
}) { RelativeSizeAxes = Axes.Both, TimeBeforeLoad = 300 };
|
||||
}
|
||||
|
||||
public class Statistic : FillFlowContainer
|
||||
|
Loading…
Reference in New Issue
Block a user