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:
parent
8524937c82
commit
3d96da84e6
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user