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.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
using osu.Game.Graphics.Containers;
|
2020-09-24 17:55:49 +08:00
|
|
|
|
using osu.Game.Overlays;
|
2020-09-07 18:21:35 +08:00
|
|
|
|
|
2019-10-08 13:23:13 +08:00
|
|
|
|
namespace osu.Game.Screens.Edit.Setup
|
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
public class SetupScreen : EditorScreen
|
2019-10-08 13:23:13 +08:00
|
|
|
|
{
|
2020-10-02 15:31:11 +08:00
|
|
|
|
[Resolved]
|
2020-10-06 14:17:15 +08:00
|
|
|
|
private OsuColour colours { get; set; }
|
2020-09-24 21:00:13 +08:00
|
|
|
|
|
2020-10-06 14:17:15 +08:00
|
|
|
|
[Cached]
|
|
|
|
|
protected readonly OverlayColourProvider ColourProvider;
|
2020-09-24 21:00:13 +08:00
|
|
|
|
|
2020-09-24 16:03:54 +08:00
|
|
|
|
public SetupScreen()
|
|
|
|
|
: base(EditorScreenMode.SongSetup)
|
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
ColourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
|
2020-09-24 16:03:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
{
|
2020-09-08 18:50:44 +08:00
|
|
|
|
Child = new Container
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2020-09-08 18:50:44 +08:00
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Padding = new MarginPadding(50),
|
|
|
|
|
Child = new Container
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2020-09-08 18:50:44 +08:00
|
|
|
|
Masking = true,
|
|
|
|
|
CornerRadius = 10,
|
|
|
|
|
Children = new Drawable[]
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2020-09-08 18:50:44 +08:00
|
|
|
|
new Box
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2020-09-08 18:50:44 +08:00
|
|
|
|
Colour = colours.GreySeafoamDark,
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
},
|
2020-10-06 14:17:15 +08:00
|
|
|
|
new SectionsContainer<SetupSection>
|
2020-09-08 18:50:44 +08:00
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
FixedHeader = new SetupScreenHeader(),
|
2020-09-08 18:50:44 +08:00
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2020-10-06 14:17:15 +08:00
|
|
|
|
Children = new SetupSection[]
|
2020-09-07 18:21:35 +08:00
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
new ResourcesSection(),
|
|
|
|
|
new MetadataSection(),
|
2020-10-06 14:51:40 +08:00
|
|
|
|
new DifficultySection(),
|
2020-10-06 14:17:15 +08:00
|
|
|
|
}
|
2020-09-08 18:50:44 +08:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-09-07 18:21:35 +08:00
|
|
|
|
};
|
2020-10-02 15:31:11 +08:00
|
|
|
|
}
|
2019-10-08 13:23:13 +08:00
|
|
|
|
}
|
2020-09-24 17:18:50 +08:00
|
|
|
|
|
2020-10-06 14:17:15 +08:00
|
|
|
|
internal class SetupScreenHeader : OverlayHeader
|
2020-09-24 17:18:50 +08:00
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
protected override OverlayTitle CreateTitle() => new SetupScreenTitle();
|
2020-09-24 17:18:50 +08:00
|
|
|
|
|
2020-10-06 14:17:15 +08:00
|
|
|
|
private class SetupScreenTitle : OverlayTitle
|
2020-09-24 17:18:50 +08:00
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
public SetupScreenTitle()
|
2020-09-24 17:18:50 +08:00
|
|
|
|
{
|
2020-10-06 14:17:15 +08:00
|
|
|
|
Title = "beatmap setup";
|
|
|
|
|
Description = "change general settings of your beatmap";
|
|
|
|
|
IconTexture = "Icons/Hexacons/social";
|
2020-09-24 17:18:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-10-08 13:23:13 +08:00
|
|
|
|
}
|