1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 20:22:58 +08:00

Make DrawableMatchRoom structurally match other implementations

This commit is contained in:
Dan Balasescu 2024-11-12 20:32:59 +09:00
parent 8d5cd2b353
commit f3fd87af7b
No known key found for this signature in database

View File

@ -20,10 +20,16 @@ namespace osu.Game.Screens.OnlinePlay.Match
{
public Action? OnEdit;
public new required Bindable<PlaylistItem?> SelectedItem
{
get => selectedItem;
set => selectedItem.Current = value;
}
[Resolved]
private IAPIProvider api { get; set; } = null!;
private readonly BindableWithCurrent<PlaylistItem?> current = new BindableWithCurrent<PlaylistItem?>();
private readonly BindableWithCurrent<PlaylistItem?> selectedItem = new BindableWithCurrent<PlaylistItem?>();
private readonly IBindable<APIUser?> host = new Bindable<APIUser?>();
private readonly bool allowEdit;
private Drawable? editButton;
@ -52,12 +58,6 @@ namespace osu.Game.Screens.OnlinePlay.Match
}
}
public new required Bindable<PlaylistItem?> SelectedItem
{
get => current;
set => current.Current = value;
}
protected override void LoadComplete()
{
base.LoadComplete();