mirror of
https://github.com/osukey/osukey.git
synced 2025-05-07 06:37:18 +09:00
Set a default background
This commit is contained in:
parent
8524937c82
commit
3d96da84e6
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Online.Rooms;
|
using osu.Game.Online.Rooms;
|
||||||
@ -20,10 +21,17 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
|||||||
private readonly BindableList<PlaylistItem> playlist = new BindableList<PlaylistItem>();
|
private readonly BindableList<PlaylistItem> playlist = new BindableList<PlaylistItem>();
|
||||||
|
|
||||||
public RoomBackgroundScreen()
|
public RoomBackgroundScreen()
|
||||||
|
: base(false)
|
||||||
{
|
{
|
||||||
playlist.BindCollectionChanged((_, __) => updateBackground());
|
playlist.BindCollectionChanged((_, __) => updateBackground());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load()
|
||||||
|
{
|
||||||
|
switchBackground(new PlaylistItemBackground(null));
|
||||||
|
}
|
||||||
|
|
||||||
private Room? room;
|
private Room? room;
|
||||||
|
|
||||||
public Room? Room
|
public Room? Room
|
||||||
|
@ -6,7 +6,6 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user