mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Update with online beatmap changes.
This commit is contained in:
parent
dc5ec319a2
commit
0624f578eb
@ -49,9 +49,15 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
Title = @"Critical Crystal",
|
Title = @"Critical Crystal",
|
||||||
Artist = @"Seiryu",
|
Artist = @"Seiryu",
|
||||||
},
|
},
|
||||||
OnlineInfo = new BeatmapOnlineInfo
|
BeatmapSet = new BeatmapSetInfo
|
||||||
{
|
{
|
||||||
Covers = new[] { @"https://assets.ppy.sh//beatmaps/376340/covers/cover.jpg?1456478455" },
|
OnlineInfo = new BeatmapSetOnlineInfo
|
||||||
|
{
|
||||||
|
Covers = new BeatmapSetOnlineCovers
|
||||||
|
{
|
||||||
|
Cover = @"https://assets.ppy.sh//beatmaps/376340/covers/cover.jpg?1456478455",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -81,9 +87,15 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
Title = @"Serendipity",
|
Title = @"Serendipity",
|
||||||
Artist = @"ZAQ",
|
Artist = @"ZAQ",
|
||||||
},
|
},
|
||||||
OnlineInfo = new BeatmapOnlineInfo
|
BeatmapSet = new BeatmapSetInfo
|
||||||
{
|
{
|
||||||
Covers = new[] { @"https://assets.ppy.sh//beatmaps/526839/covers/cover.jpg?1493815706" },
|
OnlineInfo = new BeatmapSetOnlineInfo
|
||||||
|
{
|
||||||
|
Covers = new BeatmapSetOnlineCovers
|
||||||
|
{
|
||||||
|
Cover = @"https://assets.ppy.sh//beatmaps/526839/covers/cover.jpg?1493815706",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,7 @@ using osu.Framework.Extensions.Color4Extensions;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Beatmaps.Drawables;
|
using osu.Game.Beatmaps.Drawables;
|
||||||
@ -233,7 +234,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
coverContainer.FadeIn(transition_duration);
|
coverContainer.FadeIn(transition_duration);
|
||||||
coverContainer.Children = new[]
|
coverContainer.Children = new[]
|
||||||
{
|
{
|
||||||
new AsyncLoadWrapper(new BeatmapBackgroundSprite(new OnlineWorkingBeatmap(value, textures, null))
|
new AsyncLoadWrapper(new BeatmapSetBackgroundSprite(value.BeatmapSet)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
@ -262,5 +263,23 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
{
|
{
|
||||||
participantInfo.Participants = value;
|
participantInfo.Participants = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class BeatmapSetBackgroundSprite : Sprite
|
||||||
|
{
|
||||||
|
private readonly BeatmapSetInfo set;
|
||||||
|
public BeatmapSetBackgroundSprite(BeatmapSetInfo set)
|
||||||
|
{
|
||||||
|
this.set = set;
|
||||||
|
}
|
||||||
|
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(TextureStore textures)
|
||||||
|
{
|
||||||
|
string resource = set.OnlineInfo.Covers.Cover;
|
||||||
|
|
||||||
|
if (resource != null)
|
||||||
|
Texture = textures.Get(resource);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user