mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Merge pull request #53 from Tom94/use_drawable_scheduler
Use drawable scheduler
This commit is contained in:
commit
76f1653090
@ -1 +1 @@
|
||||
Subproject commit 6b884e1b80444c5249754634a4b5529c50b52934
|
||||
Subproject commit c3a7ebd979c9a6b19871dc84337905f97c56a6aa
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user