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