mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Use BeatmapBackgroundSprite
This commit is contained in:
parent
77affc1eb7
commit
bdab545ca4
@ -36,10 +36,9 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
protected Drawable GetBackground(TextureStore textures)
|
protected Drawable GetBackground(TextureStore textures)
|
||||||
{
|
{
|
||||||
return new AsyncLoadWrapper(new Sprite
|
return new AsyncLoadWrapper(new BeatmapBackgroundSprite(new OnlineWorkingBeatmap(SetInfo.Beatmaps.FirstOrDefault(), textures, null))
|
||||||
{
|
{
|
||||||
FillMode = FillMode.Fill,
|
FillMode = FillMode.Fill,
|
||||||
Texture = new OnlineWorkingBeatmap(SetInfo.Beatmaps.FirstOrDefault(), textures, null).Background,
|
|
||||||
OnLoadComplete = d => d.FadeInFromZero(400, EasingTypes.Out),
|
OnLoadComplete = d => d.FadeInFromZero(400, EasingTypes.Out),
|
||||||
}) { RelativeSizeAxes = Axes.Both };
|
}) { RelativeSizeAxes = Axes.Both };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user