mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
More smoothness when MenuMusic is false
This commit is contained in:
parent
2a9f4e6950
commit
2eb73a7c70
@ -104,18 +104,23 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
if(osuBGM)
|
||||
bgm.Start();
|
||||
else
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
trackManager.SetExclusive(song.Track);
|
||||
song.Track.Seek(beatmap.Metadata.PreviewTime);
|
||||
if (beatmap.Metadata.PreviewTime == -1)
|
||||
song.Track.Seek(song.Track.Length * .4f);
|
||||
});
|
||||
}
|
||||
|
||||
LoadComponentAsync(mainMenu = new MainMenu());
|
||||
|
||||
Scheduler.AddDelayed(delegate
|
||||
{
|
||||
if (!osuBGM)
|
||||
Task.Run(() =>
|
||||
{
|
||||
trackManager.SetExclusive(song.Track);
|
||||
song.Track.Seek(beatmap.Metadata.PreviewTime);
|
||||
song.Track.Start();
|
||||
});
|
||||
Task.Run(() => song.Track.Start());
|
||||
DidLoadMenu = true;
|
||||
Push(mainMenu);
|
||||
}, 2300);
|
||||
|
Loading…
Reference in New Issue
Block a user