mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Adjust sprite texts in-line with framework changes
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@ -13,7 +14,7 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
private readonly List<Drawable> errorDrawables = new List<Drawable>();
|
||||
|
||||
public ErrorTextFlowContainer()
|
||||
: base(cp => { cp.TextSize = 12; })
|
||||
: base(cp => cp.Font = OsuFont.GetFont(cp.Font, size: 12))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -61,10 +61,10 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
{
|
||||
new OsuSpriteText
|
||||
{
|
||||
TextSize = 20,
|
||||
Margin = new MarginPadding { Vertical = 10 },
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Font = OsuFont.GetFont(size: 20),
|
||||
Text = "Let's create an account!",
|
||||
},
|
||||
usernameTextBox = new OsuTextBox
|
||||
@ -129,7 +129,7 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
usernameDescription.AddText("This will be your public presence. No profanity, no impersonation. Avoid exposing your own personal details, too!");
|
||||
|
||||
emailAddressDescription.AddText("Will be used for notifications, account verification and in the case you forget your password. No spam, ever.");
|
||||
emailAddressDescription.AddText(" Make sure to get it right!", cp => cp.Font = "Exo2.0-Bold");
|
||||
emailAddressDescription.AddText(" Make sure to get it right!", cp => cp.Font = OsuFont.GetFont(cp.Font, weight: FontWeight.Bold));
|
||||
|
||||
passwordDescription.AddText("At least ");
|
||||
characterCheckText = passwordDescription.AddText("8 characters long");
|
||||
|
@ -83,14 +83,13 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
},
|
||||
new OsuSpriteText
|
||||
{
|
||||
TextSize = 28,
|
||||
Font = "Exo2.0-Light",
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Colour = Color4.Red,
|
||||
Font = OsuFont.GetFont(size: 28, weight: FontWeight.Light),
|
||||
Text = "Warning! 注意!",
|
||||
},
|
||||
multiAccountExplanationText = new OsuTextFlowContainer(cp => { cp.TextSize = 12; })
|
||||
multiAccountExplanationText = new OsuTextFlowContainer(cp => cp.Font = OsuFont.GetFont(cp.Font, size: 12))
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y
|
||||
@ -106,7 +105,7 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
Text = "I understand. This account isn't for me.",
|
||||
Action = () => this.Push(new ScreenEntry())
|
||||
},
|
||||
furtherAssistance = new LinkFlowContainer(cp => { cp.TextSize = 12; })
|
||||
furtherAssistance = new LinkFlowContainer(cp => cp.Font = OsuFont.GetFont(cp.Font, size: 12))
|
||||
{
|
||||
Margin = new MarginPadding { Top = 20 },
|
||||
Anchor = Anchor.TopCentre,
|
||||
|
@ -5,6 +5,7 @@ using osu.Framework.Allocation;
|
||||
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;
|
||||
@ -40,17 +41,16 @@ namespace osu.Game.Overlays.AccountCreation
|
||||
},
|
||||
new OsuSpriteText
|
||||
{
|
||||
TextSize = 24,
|
||||
Font = "Exo2.0-Light",
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
||||
Text = "New Player Registration",
|
||||
},
|
||||
new OsuSpriteText
|
||||
{
|
||||
TextSize = 12,
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Font = OsuFont.GetFont(size: 12),
|
||||
Text = "let's get you started",
|
||||
},
|
||||
new SettingsButton
|
||||
|
Reference in New Issue
Block a user