1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 11:37:51 +08:00
osu-lazer/osu.Game/Screens/Edit/Components/EditorSidebarSection.cs

38 lines
1.1 KiB
C#
Raw Normal View History

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;
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),
Content = new Container
2022-03-15 15:35:46 +08:00
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
},
}
};
}
}
}