2020-10-06 06:17:15 +00: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.Allocation;
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Setup
|
|
|
|
{
|
|
|
|
internal class SetupSection : Container
|
|
|
|
{
|
2020-10-06 10:26:57 +00:00
|
|
|
private readonly FillFlowContainer flow;
|
2020-10-06 06:17:15 +00:00
|
|
|
|
|
|
|
[Resolved]
|
|
|
|
protected OsuColour Colours { get; private set; }
|
|
|
|
|
|
|
|
[Resolved]
|
|
|
|
protected IBindable<WorkingBeatmap> Beatmap { get; private set; }
|
|
|
|
|
2020-10-06 10:26:57 +00:00
|
|
|
protected override Container<Drawable> Content => flow;
|
2020-10-06 06:17:15 +00:00
|
|
|
|
|
|
|
public SetupSection()
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X;
|
|
|
|
AutoSizeAxes = Axes.Y;
|
|
|
|
|
|
|
|
Padding = new MarginPadding(10);
|
|
|
|
|
2020-10-06 10:26:57 +00:00
|
|
|
InternalChild = flow = new FillFlowContainer
|
2020-10-06 06:17:15 +00:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
Spacing = new Vector2(20),
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|