mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 14:37:21 +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)
|
protected Drawable GetBackground(TextureStore textures, bool doubleSize)
|
||||||
{
|
{
|
||||||
return new AsyncLoadWrapper(new BeatmapSetBackgroundSprite(SetInfo, doubleSize)
|
return new DelayedLoadWrapper(new BeatmapSetBackgroundSprite(SetInfo, doubleSize)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
FillMode = FillMode.Fill,
|
FillMode = FillMode.Fill,
|
||||||
OnLoadComplete = d => d.FadeInFromZero(400, EasingTypes.Out),
|
OnLoadComplete = d => d.FadeInFromZero(400, EasingTypes.Out),
|
||||||
}) { RelativeSizeAxes = Axes.Both };
|
}) { RelativeSizeAxes = Axes.Both, TimeBeforeLoad = 300 };
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Statistic : FillFlowContainer
|
public class Statistic : FillFlowContainer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user