2022-03-15 15:48:14 +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.
|
|
|
|
|
2022-03-15 15:35:46 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Localisation;
|
2024-06-04 19:53:42 +08:00
|
|
|
using osu.Game.Graphics.UserInterface;
|
2022-03-15 15:35:46 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Components
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class EditorSidebarSection : Container
|
2022-03-15 15:35:46 +08: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 15:46:57 +08:00
|
|
|
Content = new Container
|
2022-03-15 15:35:46 +08:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2022-03-15 15:46:57 +08:00
|
|
|
}
|