diff --git a/osu.Game/Beatmaps/Drawables/BeatmapSetCover.cs b/osu.Game/Beatmaps/Drawables/BeatmapSetCover.cs index 502ac59d46..4e41424ae8 100644 --- a/osu.Game/Beatmaps/Drawables/BeatmapSetCover.cs +++ b/osu.Game/Beatmaps/Drawables/BeatmapSetCover.cs @@ -6,7 +6,7 @@ using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osu.Game.Database; -namespace osu.Game +namespace osu.Game.Beatmaps.Drawables { public class BeatmapSetCover : Sprite { diff --git a/osu.Game/Screens/Multiplayer/DrawableRoom.cs b/osu.Game/Screens/Multiplayer/DrawableRoom.cs index f8c1844615..d8963be116 100644 --- a/osu.Game/Screens/Multiplayer/DrawableRoom.cs +++ b/osu.Game/Screens/Multiplayer/DrawableRoom.cs @@ -9,8 +9,8 @@ using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; -using osu.Framework.Graphics.Textures; using osu.Framework.Localisation; +using osu.Game.Beatmaps.Drawables; using osu.Game.Database; using osu.Game.Graphics; using osu.Game.Graphics.Containers; @@ -182,7 +182,7 @@ namespace osu.Game.Screens.Multiplayer } [BackgroundDependencyLoader] - private void load(OsuColour colours, TextureStore textures, LocalisationEngine localisation) + private void load(OsuColour colours, LocalisationEngine localisation) { this.localisation = localisation; this.colours = colours; diff --git a/osu.Game/Screens/Multiplayer/RoomInspector.cs b/osu.Game/Screens/Multiplayer/RoomInspector.cs index 322d74f2b3..9d63fdb948 100644 --- a/osu.Game/Screens/Multiplayer/RoomInspector.cs +++ b/osu.Game/Screens/Multiplayer/RoomInspector.cs @@ -12,8 +12,6 @@ using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Shapes; -using osu.Framework.Graphics.Sprites; -using osu.Framework.Graphics.Textures; using osu.Framework.Localisation; using osu.Game.Beatmaps.Drawables; using osu.Game.Database; @@ -332,7 +330,7 @@ namespace osu.Game.Screens.Multiplayer coverContainer.FadeIn(transition_duration); coverContainer.Children = new[] { - new AsyncLoadWrapper(new CoverSprite(value.BeatmapSet) + new AsyncLoadWrapper(new BeatmapSetCover(value.BeatmapSet) { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, @@ -409,22 +407,5 @@ namespace osu.Game.Screens.Multiplayer }; } } - - private class CoverSprite : Sprite - { - private readonly BeatmapSetInfo set; - - public CoverSprite(BeatmapSetInfo set) - { - this.set = set; - } - - [BackgroundDependencyLoader] - private void load(TextureStore textures) - { - if (set.OnlineInfo?.Covers?.Cover != null) - Texture = textures.Get(set.OnlineInfo.Covers.Cover); - } - } } }