2019-10-20 22:42:13 +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.
|
|
|
|
|
2019-10-20 23:06:38 +08:00
|
|
|
using System.Collections.Generic;
|
2019-10-20 22:42:13 +08:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2019-10-20 23:06:38 +08:00
|
|
|
using osu.Game.Graphics.Containers;
|
2021-04-19 13:11:26 +08:00
|
|
|
using osu.Game.Overlays;
|
2019-10-20 22:42:13 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Timing
|
|
|
|
{
|
|
|
|
public class ControlPointSettings : CompositeDrawable
|
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
2021-04-19 13:11:26 +08:00
|
|
|
private void load(OverlayColourProvider colours)
|
2019-10-20 22:42:13 +08:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
|
2019-10-20 23:06:38 +08:00
|
|
|
InternalChildren = new Drawable[]
|
2019-10-20 22:42:13 +08:00
|
|
|
{
|
2019-10-20 23:06:38 +08:00
|
|
|
new Box
|
|
|
|
{
|
2021-04-19 13:11:26 +08:00
|
|
|
Colour = colours.Background4,
|
2019-10-20 23:06:38 +08:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
},
|
|
|
|
new OsuScrollContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Child = new FillFlowContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
Children = createSections()
|
|
|
|
},
|
|
|
|
}
|
2019-10-20 22:42:13 +08:00
|
|
|
};
|
|
|
|
}
|
2019-10-20 23:06:38 +08:00
|
|
|
|
|
|
|
private IReadOnlyList<Drawable> createSections() => new Drawable[]
|
|
|
|
{
|
2020-10-02 14:25:48 +08:00
|
|
|
new GroupSection(),
|
2019-10-20 23:06:38 +08:00
|
|
|
new TimingSection(),
|
|
|
|
new DifficultySection(),
|
|
|
|
new SampleSection(),
|
|
|
|
new EffectSection(),
|
|
|
|
};
|
2019-10-20 22:42:13 +08:00
|
|
|
}
|
|
|
|
}
|