1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Use own Scheduler instead of Game.Scheduler.

This commit is contained in:
Thomas Müller 2016-10-08 11:33:24 +02:00
parent 556420ee58
commit 0c793dfe69
3 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 6b884e1b80444c5249754634a4b5529c50b52934
Subproject commit 306e2898edc2ef7ed3b45e45e055601f0115d6ea

View File

@ -44,18 +44,18 @@ namespace osu.Game.GameModes.Menu
AudioTrack bgm = Game.Audio.Track.Get(@"circles");
bgm.Looping = true;
Game.Scheduler.Add(delegate
Scheduler.Add(delegate
{
welcome.Play();
}, true);
Game.Scheduler.AddDelayed(delegate
Scheduler.AddDelayed(delegate
{
bgm.Start();
}, 600);
Game.Scheduler.AddDelayed(delegate
Scheduler.AddDelayed(delegate
{
DidLoadMenu = true;
Push(new MainMenu());
@ -82,7 +82,7 @@ namespace osu.Game.GameModes.Menu
protected override void OnResuming(GameMode last)
{
//we are just an intro. if we are resumed, we just want to exit after a short delay (to allow the last mode to transition out).
Game.Scheduler.AddDelayed(Exit, 300);
Scheduler.AddDelayed(Exit, 300);
base.OnResuming(last);
}

View File

@ -47,7 +47,7 @@ namespace osu.Game.GameModes.Menu
OnSolo = delegate { Push(new PlaySongSelect()); },
OnMulti = delegate { Push(new Lobby()); },
OnTest = delegate { Push(new TestBrowser()); },
OnExit = delegate { Game.Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
OnExit = delegate { Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
OnSettings = delegate {
osu.Options.PoppedOut = !osu.Options.PoppedOut;
},