Add daily challenge intro sequence

This commit is contained in:
Dean Herbert 2024-08-05 18:07:56 +09:00
parent 6870311c1e
commit cfccd74441
No known key found for this signature in database
2 changed files with 43 additions and 1 deletions

View File

@ -150,7 +150,7 @@ namespace osu.Game.Screens.Menu
OnPlaylists = () => this.Push(new Playlists()),
OnDailyChallenge = room =>
{
this.Push(new DailyChallenge(room));
this.Push(new DailyChallengeIntro(room));
},
OnExit = () =>
{

View File

@ -0,0 +1,42 @@
// 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);
}
}
}