osu/osu.Game/Overlays/FirstRunSetup/ScreenWelcome.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.7 KiB
C#
Raw Normal View History

2022-04-06 08:42:10 +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.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Game.Graphics.Containers;
using osu.Game.Screens.OnlinePlay.Match.Components;
using osuTK;
namespace osu.Game.Overlays.FirstRunSetup
{
public class ScreenWelcome : FirstRunSetupScreen
{
public ScreenWelcome()
{
Content.Children = new Drawable[]
{
new FillFlowContainer
{
RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Children = new Drawable[]
{
new OsuTextFlowContainer
{
Text = "Welcome to the first-run setup guide!\n\nThis will help you get osu! setup in a way that suits you.",
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y
},
}
},
new PurpleTriangleButton
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.X,
Margin = new MarginPadding(10),
Text = "Get started",
2022-04-06 09:11:32 +00:00
Action = () => this.Push(new ScreenSetupUIScale()),
2022-04-06 08:42:10 +00:00
}
};
}
public override void OnEntering(IScreen last)
{
base.OnEntering(last);
2022-04-06 09:11:32 +00:00
Overlay.MoveDisplayTo(new Vector2(0.5f));
2022-04-06 08:42:10 +00:00
}
}
}