mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:33:22 +08:00
Compare commits
4 Commits
ebe3cf2966
...
e7f32d951d
Author | SHA1 | Date | |
---|---|---|---|
|
e7f32d951d | ||
|
791bf95396 | ||
|
b1d4261402 | ||
|
880d138a47 |
@ -64,6 +64,8 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
|
||||
introStack.Push(CreateScreen());
|
||||
});
|
||||
|
||||
AddUntilStep("wait for menu", () => introStack.CurrentScreen is MainMenu);
|
||||
}
|
||||
|
||||
protected abstract IScreen CreateScreen();
|
||||
|
@ -140,7 +140,7 @@ namespace osu.Game.Screens.Menu
|
||||
preloadSongSelect();
|
||||
}
|
||||
|
||||
[Resolved]
|
||||
[Resolved(canBeNull: true)]
|
||||
private OsuGame game { get; set; }
|
||||
|
||||
private void confirmAndExit()
|
||||
@ -148,7 +148,7 @@ namespace osu.Game.Screens.Menu
|
||||
if (exitConfirmed) return;
|
||||
|
||||
exitConfirmed = true;
|
||||
game.PerformFromScreen(menu => menu.Exit());
|
||||
game?.PerformFromScreen(menu => menu.Exit());
|
||||
}
|
||||
|
||||
private void preloadSongSelect()
|
||||
|
@ -85,8 +85,6 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
}
|
||||
|
||||
Beatmap.Value.Track.Looping = false;
|
||||
|
||||
SampleConfirm?.Play();
|
||||
|
||||
this.Push(player = new PlayerLoader(() => new Player()));
|
||||
|
@ -572,6 +572,9 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
BeatmapOptions.Hide();
|
||||
|
||||
if (Beatmap.Value.Track != null)
|
||||
Beatmap.Value.Track.Looping = false;
|
||||
|
||||
this.ScaleTo(1.1f, 250, Easing.InSine);
|
||||
|
||||
this.FadeOut(250);
|
||||
|
Loading…
Reference in New Issue
Block a user