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