Fix test text not being centered

This commit is contained in:
Dean Herbert 2020-02-14 15:27:09 +09:00
parent aa7efe6141
commit c34f1f40ea

View File

@ -6,6 +6,7 @@ using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Online; using osu.Game.Online;
@ -38,6 +39,7 @@ namespace osu.Game.Tests.Visual.Online
: base(@"Please sign in to view dummy test content") : base(@"Please sign in to view dummy test content")
{ {
RelativeSizeAxes = Axes.Both; RelativeSizeAxes = Axes.Both;
Children = new Drawable[] Children = new Drawable[]
{ {
new Box new Box
@ -48,7 +50,7 @@ namespace osu.Game.Tests.Visual.Online
new OsuSpriteText new OsuSpriteText
{ {
Text = "dummy online content", Text = "dummy online content",
RelativeSizeAxes = Axes.Both, Font = OsuFont.Default.With(size: 40),
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
} }