1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-25 06:22:54 +08:00
osu-lazer/osu.Game/Screens/Edit/Submission/ScreenContentPermissions.cs

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

45 lines
1.7 KiB
C#
Raw Normal View History

// 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.Graphics;
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Localisation;
using osu.Game.Overlays;
namespace osu.Game.Screens.Edit.Submission
{
[LocalisableDescription(typeof(BeatmapSubmissionStrings), nameof(BeatmapSubmissionStrings.ContentPermissions))]
public partial class ScreenContentPermissions : WizardScreen
{
[BackgroundDependencyLoader]
private void load(OsuGame? game)
{
Content.AddRange(new Drawable[]
{
new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: CONTENT_FONT_SIZE))
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Text = BeatmapSubmissionStrings.ContentPermissionsDisclaimer,
},
new RoundedButton
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Width = 450,
Text = BeatmapSubmissionStrings.CheckContentUsageGuidelines,
Action = () => game?.ShowWiki(@"Rules/Content_usage_permissions"),
},
});
}
public override LocalisableString? NextStepText => BeatmapSubmissionStrings.ContentPermissionsAcknowledgement;
}
}