1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:13:21 +08:00

Rename PlaylistItem

This commit is contained in:
smoogipoo 2020-01-30 19:23:53 +09:00
parent 00a7adcdca
commit 0c4540b551
2 changed files with 4 additions and 4 deletions

View File

@ -26,9 +26,9 @@ namespace osu.Game.Overlays.Music
public void Filter(string searchTerm) => ((SearchContainer<RearrangeableListItem<BeatmapSetInfo>>)ListContainer).SearchTerm = searchTerm;
public BeatmapSetInfo FirstVisibleSet => Items.FirstOrDefault(i => ((DrawablePlaylistItem)ItemMap[i]).MatchingFilter);
public BeatmapSetInfo FirstVisibleSet => Items.FirstOrDefault(i => ((PlaylistItem)ItemMap[i]).MatchingFilter);
protected override RearrangeableListItem<BeatmapSetInfo> CreateDrawable(BeatmapSetInfo item) => new DrawablePlaylistItem(item)
protected override RearrangeableListItem<BeatmapSetInfo> CreateDrawable(BeatmapSetInfo item) => new PlaylistItem(item)
{
SelectedSet = { BindTarget = SelectedSet },
RequestSelection = set => RequestSelection?.Invoke(set)

View File

@ -19,7 +19,7 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.Music
{
public class DrawablePlaylistItem : RearrangeableListItem<BeatmapSetInfo>, IFilterable
public class PlaylistItem : RearrangeableListItem<BeatmapSetInfo>, IFilterable
{
private const float fade_duration = 100;
@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Music
private Color4 hoverColour;
private Color4 artistColour;
public DrawablePlaylistItem(BeatmapSetInfo item)
public PlaylistItem(BeatmapSetInfo item)
: base(item)
{
RelativeSizeAxes = Axes.X;