2022-03-15 16:48:14 +09: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.
|
|
|
|
|
2022-03-15 16:35:46 +09:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Localisation;
|
2024-06-04 13:53:42 +02:00
|
|
|
using osu.Game.Graphics.UserInterface;
|
2022-03-15 16:35:46 +09:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Components
|
|
|
|
{
|
2022-11-24 14:32:20 +09:00
|
|
|
public partial class EditorSidebarSection : Container
|
2022-03-15 16:35:46 +09:00
|
|
|
{
|
|
|
|
protected override Container<Drawable> Content { get; }
|
|
|
|
|
|
|
|
public EditorSidebarSection(LocalisableString sectionName)
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X;
|
|
|
|
AutoSizeAxes = Axes.Y;
|
|
|
|
|
|
|
|
InternalChild = new FillFlowContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new SectionHeader(sectionName),
|
2022-03-15 16:46:57 +09:00
|
|
|
Content = new Container
|
2022-03-15 16:35:46 +09:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2022-03-15 16:46:57 +09:00
|
|
|
}
|