1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:33:21 +08:00

Set a default background

This commit is contained in:
smoogipoo 2021-08-20 17:05:46 +09:00
parent 8524937c82
commit 3d96da84e6
2 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,7 @@
using System.Linq;
using System.Threading;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Online.Rooms;
@ -20,10 +21,17 @@ namespace osu.Game.Screens.OnlinePlay.Components
private readonly BindableList<PlaylistItem> playlist = new BindableList<PlaylistItem>();
public RoomBackgroundScreen()
: base(false)
{
playlist.BindCollectionChanged((_, __) => updateBackground());
}
[BackgroundDependencyLoader]
private void load()
{
switchBackground(new PlaylistItemBackground(null));
}
private Room? room;
public Room? Room

View File

@ -6,7 +6,6 @@ using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Logging;
using osu.Framework.Screens;
using osu.Game.Graphics.Containers;