mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:03:01 +08:00
Use own Scheduler instead of Game.Scheduler.
This commit is contained in:
parent
556420ee58
commit
0c793dfe69
@ -1 +1 @@
|
|||||||
Subproject commit 6b884e1b80444c5249754634a4b5529c50b52934
|
Subproject commit 306e2898edc2ef7ed3b45e45e055601f0115d6ea
|
@ -44,18 +44,18 @@ namespace osu.Game.GameModes.Menu
|
|||||||
AudioTrack bgm = Game.Audio.Track.Get(@"circles");
|
AudioTrack bgm = Game.Audio.Track.Get(@"circles");
|
||||||
bgm.Looping = true;
|
bgm.Looping = true;
|
||||||
|
|
||||||
Game.Scheduler.Add(delegate
|
Scheduler.Add(delegate
|
||||||
{
|
{
|
||||||
welcome.Play();
|
welcome.Play();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
|
||||||
Game.Scheduler.AddDelayed(delegate
|
Scheduler.AddDelayed(delegate
|
||||||
{
|
{
|
||||||
bgm.Start();
|
bgm.Start();
|
||||||
}, 600);
|
}, 600);
|
||||||
|
|
||||||
Game.Scheduler.AddDelayed(delegate
|
Scheduler.AddDelayed(delegate
|
||||||
{
|
{
|
||||||
DidLoadMenu = true;
|
DidLoadMenu = true;
|
||||||
Push(new MainMenu());
|
Push(new MainMenu());
|
||||||
@ -82,7 +82,7 @@ namespace osu.Game.GameModes.Menu
|
|||||||
protected override void OnResuming(GameMode last)
|
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).
|
//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);
|
base.OnResuming(last);
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ namespace osu.Game.GameModes.Menu
|
|||||||
OnSolo = delegate { Push(new PlaySongSelect()); },
|
OnSolo = delegate { Push(new PlaySongSelect()); },
|
||||||
OnMulti = delegate { Push(new Lobby()); },
|
OnMulti = delegate { Push(new Lobby()); },
|
||||||
OnTest = delegate { Push(new TestBrowser()); },
|
OnTest = delegate { Push(new TestBrowser()); },
|
||||||
OnExit = delegate { Game.Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
|
OnExit = delegate { Scheduler.AddDelayed(Exit, ButtonSystem.EXIT_DELAY); },
|
||||||
OnSettings = delegate {
|
OnSettings = delegate {
|
||||||
osu.Options.PoppedOut = !osu.Options.PoppedOut;
|
osu.Options.PoppedOut = !osu.Options.PoppedOut;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user