mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Merge pull request #291 from peppy/mode-entering
Move Intro logic to OnEntering in line with framework changes.
This commit is contained in:
commit
0fcdc7ec11
@ -1 +1 @@
|
|||||||
Subproject commit f2eec2adf590d60e91dda77de6f11d757ad6055f
|
Subproject commit 29c4a3f29ad06a90da14ddafba1884f8265412d8
|
@ -110,11 +110,9 @@ namespace osu.Game
|
|||||||
|
|
||||||
(modeStack = new Intro()).Preload(this, d =>
|
(modeStack = new Intro()).Preload(this, d =>
|
||||||
{
|
{
|
||||||
mainContent.Add(d);
|
|
||||||
|
|
||||||
modeStack.ModePushed += modeAdded;
|
modeStack.ModePushed += modeAdded;
|
||||||
modeStack.Exited += modeRemoved;
|
modeStack.Exited += modeRemoved;
|
||||||
modeStack.DisplayAsRoot();
|
mainContent.Add(modeStack);
|
||||||
});
|
});
|
||||||
|
|
||||||
//overlay elements
|
//overlay elements
|
||||||
|
@ -65,9 +65,10 @@ namespace osu.Game.Screens.Menu
|
|||||||
bgm.Looping = true;
|
bgm.Looping = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void OnEntering(GameMode last)
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.OnEntering(last);
|
||||||
|
|
||||||
Scheduler.Add(delegate
|
Scheduler.Add(delegate
|
||||||
{
|
{
|
||||||
welcome.Play();
|
welcome.Play();
|
||||||
|
Loading…
Reference in New Issue
Block a user