mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 20:47:24 +09:00
Merge pull request #21278 from peppy/overlay-header-texture-reduction
Avoid loading overlay headers until first open
This commit is contained in:
commit
13fe0d3491
@ -18,7 +18,7 @@ namespace osu.Game.Overlays
|
|||||||
Height = 80;
|
Height = 80;
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
Masking = true;
|
Masking = true;
|
||||||
InternalChild = new Background(textureName);
|
InternalChild = new DelayedLoadWrapper(() => new Background(textureName));
|
||||||
}
|
}
|
||||||
|
|
||||||
private class Background : Sprite
|
private class Background : Sprite
|
||||||
@ -36,10 +36,16 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures)
|
private void load(LargeTextureStore textures)
|
||||||
{
|
{
|
||||||
Texture = textures.Get(textureName);
|
Texture = textures.Get(textureName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
this.FadeInFromZero(500, Easing.OutQuint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user