1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 19:02:56 +08:00
osu-lazer/osu.Game/Screens/Edit/Setup/SetupScreen.cs

72 lines
2.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.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Overlays;
2020-09-07 18:21:35 +08:00
namespace osu.Game.Screens.Edit.Setup
{
public class SetupScreen : EditorScreen
{
2021-04-04 02:02:26 +08:00
public const int HORIZONTAL_PADDING = 100;
[Resolved]
private OsuColour colours { get; set; }
[Cached]
protected readonly OverlayColourProvider ColourProvider;
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)
{
ColourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
}
2020-09-07 18:21:35 +08:00
[BackgroundDependencyLoader]
private void load()
{
Child = new Container
2020-09-07 18:21:35 +08:00
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding(50),
Child = new Container
2020-09-07 18:21:35 +08:00
{
RelativeSizeAxes = Axes.Both,
Masking = true,
CornerRadius = 10,
Children = new Drawable[]
2020-09-07 18:21:35 +08:00
{
new Box
2020-09-07 18:21:35 +08:00
{
Colour = ColourProvider.Dark4,
RelativeSizeAxes = Axes.Both,
},
2021-04-04 02:02:26 +08:00
sections = new SectionsContainer<SetupSection>
{
2021-04-04 18:50:50 +08:00
FixedHeader = header,
RelativeSizeAxes = Axes.Both,
Children = new SetupSection[]
2020-09-07 18:21:35 +08:00
{
new ResourcesSection(),
new MetadataSection(),
2020-10-06 14:51:40 +08:00
new DifficultySection(),
}
},
}
}
2020-09-07 18:21:35 +08:00
};
}
}
}