1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:47:24 +08:00
osu-lazer/osu.Game/Collections/DrawableCollectionList.cs

29 lines
1.1 KiB
C#
Raw Normal View History

2020-09-05 02:52:07 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Containers;
using osuTK;
namespace osu.Game.Collections
{
2020-09-05 02:55:43 +08:00
public class DrawableCollectionList : OsuRearrangeableListContainer<BeatmapCollection>
2020-09-05 02:52:07 +08:00
{
protected override ScrollContainer<Drawable> CreateScrollContainer() => base.CreateScrollContainer().With(d =>
{
d.ScrollbarVisible = false;
d.Padding = new MarginPadding(10);
2020-09-05 02:52:07 +08:00
});
protected override FillFlowContainer<RearrangeableListItem<BeatmapCollection>> CreateListFillFlowContainer() => new FillFlowContainer<RearrangeableListItem<BeatmapCollection>>
{
LayoutDuration = 200,
LayoutEasing = Easing.OutQuint,
Spacing = new Vector2(0, 5)
2020-09-05 02:52:07 +08:00
};
2020-09-05 02:55:43 +08:00
protected override OsuRearrangeableListItem<BeatmapCollection> CreateOsuDrawable(BeatmapCollection item) => new DrawableCollectionListItem(item);
2020-09-05 02:52:07 +08:00
}
}