mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 02:52:54 +08:00
Make DrawableMatchRoom
structurally match other implementations
This commit is contained in:
parent
8d5cd2b353
commit
f3fd87af7b
@ -20,10 +20,16 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
|||||||
{
|
{
|
||||||
public Action? OnEdit;
|
public Action? OnEdit;
|
||||||
|
|
||||||
|
public new required Bindable<PlaylistItem?> SelectedItem
|
||||||
|
{
|
||||||
|
get => selectedItem;
|
||||||
|
set => selectedItem.Current = value;
|
||||||
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; } = null!;
|
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 IBindable<APIUser?> host = new Bindable<APIUser?>();
|
||||||
private readonly bool allowEdit;
|
private readonly bool allowEdit;
|
||||||
private Drawable? editButton;
|
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()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
Loading…
Reference in New Issue
Block a user