1
0
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:
DrabWeb 2017-06-08 05:08:12 -03:00
parent d541006134
commit 1162df96be

View File

@ -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