mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Added basic loading screen and test case
This commit is contained in:
37
osu.Game/Screens/Play/LoadingScreen.cs
Normal file
37
osu.Game/Screens/Play/LoadingScreen.cs
Normal file
@ -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"
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user