1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-25 16:12:55 +08:00
osu-lazer/osu.Game/Screens/Edit/Setup/SetupScreen.cs

44 lines
1.3 KiB
C#
Raw Normal View History

// 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.
2020-09-07 18:21:35 +08:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics.Containers;
namespace osu.Game.Screens.Edit.Setup
{
public class SetupScreen : EditorRoundedScreen
{
2021-04-04 02:02:26 +08:00
[Cached]
private SectionsContainer<SetupSection> sections = new SectionsContainer<SetupSection>();
2021-04-04 18:50:50 +08:00
[Cached]
private SetupScreenHeader header = new SetupScreenHeader();
public SetupScreen()
: base(EditorScreenMode.SongSetup)
{
}
2020-09-07 18:21:35 +08:00
[BackgroundDependencyLoader]
private void load()
{
AddRange(new Drawable[]
2020-09-07 18:21:35 +08:00
{
sections = new SectionsContainer<SetupSection>
2020-09-07 18:21:35 +08:00
{
FixedHeader = header,
2020-09-07 18:21:35 +08:00
RelativeSizeAxes = Axes.Both,
Children = new SetupSection[]
2020-09-07 18:21:35 +08:00
{
new ResourcesSection(),
new MetadataSection(),
new DifficultySection(),
new ColoursSection()
}
},
});
}
}
}