2019-01-24 16:43:03 +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.
|
2018-12-06 10:58:09 +08:00
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2023-06-14 22:58:55 +08:00
|
|
|
using osu.Framework.Extensions.LocalisationExtensions;
|
2018-12-06 10:58:09 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2019-01-23 19:52:00 +08:00
|
|
|
using osu.Framework.Screens;
|
2019-02-12 12:04:46 +08:00
|
|
|
using osu.Game.Graphics;
|
2018-12-06 10:58:09 +08:00
|
|
|
using osu.Game.Graphics.Sprites;
|
|
|
|
using osu.Game.Overlays.Settings;
|
|
|
|
using osu.Game.Screens.Menu;
|
|
|
|
using osuTK;
|
2023-01-17 02:31:01 +08:00
|
|
|
using osu.Game.Localisation;
|
2018-12-06 10:58:09 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Overlays.AccountCreation
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class ScreenWelcome : AccountCreationScreen
|
2018-12-06 10:58:09 +08:00
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
|
|
|
{
|
2019-01-23 19:52:00 +08:00
|
|
|
InternalChild = new FillFlowContainer
|
2018-12-06 10:58:09 +08:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
Padding = new MarginPadding(20),
|
|
|
|
Spacing = new Vector2(0, 5),
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
2018-12-06 11:53:35 +08:00
|
|
|
new Container
|
2018-12-06 10:58:09 +08:00
|
|
|
{
|
2018-12-06 11:53:35 +08:00
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
Height = 150,
|
|
|
|
Child = new OsuLogo
|
|
|
|
{
|
|
|
|
Scale = new Vector2(0.1f),
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Triangles = false,
|
|
|
|
},
|
2018-12-06 10:58:09 +08:00
|
|
|
},
|
|
|
|
new OsuSpriteText
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
2019-02-12 12:04:46 +08:00
|
|
|
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
2023-06-14 22:58:55 +08:00
|
|
|
Text = AccountCreationStrings.NewPlayerRegistration.ToTitle(),
|
2018-12-06 10:58:09 +08:00
|
|
|
},
|
|
|
|
new OsuSpriteText
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
2019-02-12 12:04:46 +08:00
|
|
|
Font = OsuFont.GetFont(size: 12),
|
2023-06-14 22:58:55 +08:00
|
|
|
Text = AccountCreationStrings.LetsGetYouStarted.ToLower(),
|
2018-12-06 10:58:09 +08:00
|
|
|
},
|
|
|
|
new SettingsButton
|
|
|
|
{
|
2023-01-17 02:31:01 +08:00
|
|
|
Text = AccountCreationStrings.LetsCreateAnAccount,
|
2018-12-06 10:58:09 +08:00
|
|
|
Margin = new MarginPadding { Vertical = 120 },
|
2019-01-23 19:52:00 +08:00
|
|
|
Action = () => this.Push(new ScreenWarning())
|
2018-12-06 10:58:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|