mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
b54f3a2cba
The casing of the "caps lock" tooltip wasn't changed in code, as tooltips should be ideally sentence-cased, see https://github.com/ppy/osu/pull/21765#issuecomment-1552378930.
69 lines
2.5 KiB
C#
69 lines
2.5 KiB
C#
// 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.
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Extensions.LocalisationExtensions;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Framework.Screens;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Graphics.Sprites;
|
|
using osu.Game.Overlays.Settings;
|
|
using osu.Game.Screens.Menu;
|
|
using osuTK;
|
|
using osu.Game.Localisation;
|
|
|
|
namespace osu.Game.Overlays.AccountCreation
|
|
{
|
|
public partial class ScreenWelcome : AccountCreationScreen
|
|
{
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
InternalChild = new FillFlowContainer
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Direction = FillDirection.Vertical,
|
|
Anchor = Anchor.TopCentre,
|
|
Origin = Anchor.TopCentre,
|
|
Padding = new MarginPadding(20),
|
|
Spacing = new Vector2(0, 5),
|
|
Children = new Drawable[]
|
|
{
|
|
new Container
|
|
{
|
|
RelativeSizeAxes = Axes.X,
|
|
Height = 150,
|
|
Child = new OsuLogo
|
|
{
|
|
Scale = new Vector2(0.1f),
|
|
Anchor = Anchor.Centre,
|
|
Triangles = false,
|
|
},
|
|
},
|
|
new OsuSpriteText
|
|
{
|
|
Anchor = Anchor.TopCentre,
|
|
Origin = Anchor.TopCentre,
|
|
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
|
Text = AccountCreationStrings.NewPlayerRegistration.ToTitle(),
|
|
},
|
|
new OsuSpriteText
|
|
{
|
|
Anchor = Anchor.TopCentre,
|
|
Origin = Anchor.TopCentre,
|
|
Font = OsuFont.GetFont(size: 12),
|
|
Text = AccountCreationStrings.LetsGetYouStarted.ToLower(),
|
|
},
|
|
new SettingsButton
|
|
{
|
|
Text = AccountCreationStrings.LetsCreateAnAccount,
|
|
Margin = new MarginPadding { Vertical = 120 },
|
|
Action = () => this.Push(new ScreenWarning())
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|