Merge pull request #16019 from smoogipoo/cleanup-playlist-item-buttons

Cleanup duplicated classes in DrawableRoomPlaylistItem
This commit is contained in:
Dean Herbert
2021-12-10 12:01:26 +09:00
committed by GitHub
2 changed files with 23 additions and 34 deletions

View File

@ -248,6 +248,16 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddAssert("owner visible", () => playlist.ChildrenOfType<UpdateableAvatar>().All(a => a.IsPresent == withOwner));
}
[Test]
public void TestWithAllButtonsEnabled()
{
createPlaylist(p =>
{
p.AllowDeletion = true;
p.AllowShowingResults = true;
});
}
private void moveToItem(int index, Vector2? offset = null)
=> AddStep($"move mouse to item {index}", () => InputManager.MoveMouseTo(playlist.ChildrenOfType<DifficultyIcon>().ElementAt(index), offset));