mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove ctor params from DrawableRoomPlaylist/DrawablePlaylistItem
This commit is contained in:
@ -329,10 +329,26 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
{
|
||||
public new IReadOnlyDictionary<PlaylistItem, RearrangeableListItem<PlaylistItem>> ItemMap => base.ItemMap;
|
||||
|
||||
private readonly bool allowEdit;
|
||||
private readonly bool allowSelection;
|
||||
private readonly bool showItemOwner;
|
||||
|
||||
public TestPlaylist(bool allowEdit, bool allowSelection, bool showItemOwner = false)
|
||||
: base(allowEdit, allowSelection, showItemOwner)
|
||||
{
|
||||
this.allowEdit = allowEdit;
|
||||
this.allowSelection = allowSelection;
|
||||
this.showItemOwner = showItemOwner;
|
||||
}
|
||||
|
||||
protected override OsuRearrangeableListItem<PlaylistItem> CreateOsuDrawable(PlaylistItem item) => base.CreateOsuDrawable(item).With(d =>
|
||||
{
|
||||
var drawablePlaylistItem = (DrawableRoomPlaylistItem)d;
|
||||
|
||||
drawablePlaylistItem.AllowReordering = allowEdit;
|
||||
drawablePlaylistItem.AllowDeletion = allowEdit;
|
||||
drawablePlaylistItem.AllowSelection = allowSelection;
|
||||
drawablePlaylistItem.ShowItemOwner = showItemOwner;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user