// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; 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 { protected FillFlowContainer Flow; [Resolved] protected OsuColour Colours { get; private set; } [Resolved] protected IBindable Beatmap { get; private set; } public override void Add(Drawable drawable) => throw new InvalidOperationException("Use Flow.Add instead"); public SetupSection() { RelativeSizeAxes = Axes.X; AutoSizeAxes = Axes.Y; Padding = new MarginPadding(10); InternalChild = Flow = new FillFlowContainer { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Spacing = new Vector2(20), Direction = FillDirection.Vertical, }; } } }