2019-10-08 13:23:13 +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.
|
|
|
|
|
|
2020-09-07 18:21:35 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics.Containers;
|
|
|
|
|
|
2019-10-08 13:23:13 +08:00
|
|
|
|
namespace osu.Game.Screens.Edit.Setup
|
|
|
|
|
{
|
2021-04-19 12:57:46 +08:00
|
|
|
|
public class SetupScreen : RoundedContentEditorScreen
|
2019-10-08 13:23:13 +08:00
|
|
|
|
{
|
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();
|
|
|
|
|
|
2020-09-24 16:03:54 +08:00
|
|
|
|
public SetupScreen()
|
|
|
|
|
: base(EditorScreenMode.SongSetup)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-07 18:21:35 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
2020-10-06 13:22:53 +08:00
|
|
|
|
private void load()
|
2019-10-08 13:23:13 +08:00
|
|
|
|
{
|
2021-04-19 12:57:46 +08:00
|
|
|
|
AddRange(new Drawable[]
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2021-04-19 12:57:46 +08:00
|
|
|
|
sections = new SectionsContainer<SetupSection>
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2021-04-19 12:57:46 +08:00
|
|
|
|
FixedHeader = header,
|
2020-09-07 18:21:35 +08:00
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2021-04-19 12:57:46 +08:00
|
|
|
|
Children = new SetupSection[]
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2021-04-19 12:57:46 +08:00
|
|
|
|
new ResourcesSection(),
|
|
|
|
|
new MetadataSection(),
|
|
|
|
|
new DifficultySection(),
|
2021-04-20 00:21:57 +08:00
|
|
|
|
new ColoursSection()
|
2020-09-08 18:50:44 +08:00
|
|
|
|
}
|
2021-04-19 12:57:46 +08:00
|
|
|
|
},
|
|
|
|
|
});
|
2020-10-02 15:31:11 +08:00
|
|
|
|
}
|
2019-10-08 13:23:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|