1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 16:27:43 +08:00
osu-lazer/osu.Game/Screens/OnlinePlay/DailyChallenge/DailyChallengeIntro.cs
2024-08-07 19:07:44 +09:00

43 lines
1.1 KiB
C#

// 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.Graphics;
using osu.Framework.Screens;
using osu.Game.Graphics.Sprites;
using osu.Game.Online.Rooms;
namespace osu.Game.Screens.OnlinePlay.DailyChallenge
{
public partial class DailyChallengeIntro : OsuScreen
{
private readonly Room room;
public DailyChallengeIntro(Room room)
{
this.room = room;
ValidForResume = false;
}
public override void OnEntering(ScreenTransitionEvent e)
{
base.OnEntering(e);
InternalChildren = new Drawable[]
{
new OsuSpriteText
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Text = "wangs"
}
};
Scheduler.AddDelayed(() =>
{
this.Push(new DailyChallenge(room));
}, 2000);
}
}
}