mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 02:22:56 +08:00
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
// 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 System.Collections.Generic;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Framework.Graphics.Shapes;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Graphics.Containers;
|
|
|
|
namespace osu.Game.Screens.Edit.Timing
|
|
{
|
|
public class ControlPointSettings : CompositeDrawable
|
|
{
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours)
|
|
{
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
InternalChildren = new Drawable[]
|
|
{
|
|
new Box
|
|
{
|
|
Colour = colours.Gray3,
|
|
RelativeSizeAxes = Axes.Both,
|
|
},
|
|
new OsuScrollContainer
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = new FillFlowContainer
|
|
{
|
|
RelativeSizeAxes = Axes.X,
|
|
AutoSizeAxes = Axes.Y,
|
|
Direction = FillDirection.Vertical,
|
|
Children = createSections()
|
|
},
|
|
}
|
|
};
|
|
}
|
|
|
|
private IReadOnlyList<Drawable> createSections() => new Drawable[]
|
|
{
|
|
new TimingSection(),
|
|
new DifficultySection(),
|
|
new SampleSection(),
|
|
new EffectSection(),
|
|
};
|
|
}
|
|
}
|