mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 23:12:59 +08:00
Avoid loading overlay headers until first open
Also switches them to use non-atlased target as they won't benefit much from atlasing.
This commit is contained in:
parent
f67e8ce523
commit
73e4827d36
@ -18,7 +18,7 @@ namespace osu.Game.Overlays
|
||||
Height = 80;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Masking = true;
|
||||
InternalChild = new Background(textureName);
|
||||
InternalChild = new DelayedLoadWrapper(() => new Background(textureName));
|
||||
}
|
||||
|
||||
private class Background : Sprite
|
||||
@ -36,10 +36,16 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TextureStore textures)
|
||||
private void load(LargeTextureStore textures)
|
||||
{
|
||||
Texture = textures.Get(textureName);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
this.FadeInFromZero(500, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user