diff --git a/osu.Desktop.VisualTests/Tests/TestCasePlayerLoadingScreen.cs b/osu.Desktop.VisualTests/Tests/TestCasePlayerLoadingScreen.cs new file mode 100644 index 0000000000..9e0ba161c9 --- /dev/null +++ b/osu.Desktop.VisualTests/Tests/TestCasePlayerLoadingScreen.cs @@ -0,0 +1,31 @@ +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using osu.Framework.Graphics; +using osu.Framework.Graphics.Primitives; +using osu.Framework.Testing; +using osu.Game.Database; +using osu.Game.Screens.Select; +using System.Linq; +using osu.Game.Screens.Play; +using OpenTK; + +namespace osu.Desktop.VisualTests.Tests +{ + public class TestCasePlayerLoadingScreen : TestCase + { + public override string Description => @"Loading screen in player"; + + public override void Reset() + { + base.Reset(); + + Add(new LoadingScreen + { + Anchor = Anchor.Centre, + Origin = Anchor.Centre, + }); + } + } +} + diff --git a/osu.Game/Screens/Play/LoadingScreen.cs b/osu.Game/Screens/Play/LoadingScreen.cs new file mode 100644 index 0000000000..7ac6b83cd8 --- /dev/null +++ b/osu.Game/Screens/Play/LoadingScreen.cs @@ -0,0 +1,37 @@ +using osu.Framework.Allocation; +using osu.Framework.Graphics; +using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Primitives; +using osu.Framework.Graphics.Sprites; +using osu.Framework.Screens; +using osu.Game.Beatmaps; +using osu.Game.Database; +using osu.Game.Graphics; +using osu.Game.Graphics.Sprites; +using osu.Game.Screens.Backgrounds; +using osu.Game.Screens.Menu; +using OpenTK; + +namespace osu.Game.Screens.Play +{ + public class LoadingScreen : OsuScreen + { + + private string loadingText = "loading..."; + + [BackgroundDependencyLoader] + private void load() + { + Add( + new OsuSpriteText + { + Anchor = Anchor.Centre, + Origin = Anchor.Centre, + Text = loadingText, + TextSize = 48, + Font = @"Exo2.0-MediumItalic" + } + ); + } + } +}