mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
select beatmap on import/download
This commit is contained in:
parent
3e417d8e30
commit
dde7678095
@ -2,6 +2,7 @@
|
|||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
using OpenTK.Input;
|
using OpenTK.Input;
|
||||||
@ -302,7 +303,14 @@ namespace osu.Game.Screens.Select
|
|||||||
carousel.Filter(criteria, debounce);
|
carousel.Filter(criteria, debounce);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onBeatmapSetAdded(BeatmapSetInfo s) => Schedule(() => carousel.UpdateBeatmapSet(s));
|
private void onBeatmapSetAdded(BeatmapSetInfo s)
|
||||||
|
{
|
||||||
|
Schedule(() =>
|
||||||
|
{
|
||||||
|
carousel.UpdateBeatmapSet(s);
|
||||||
|
carousel.SelectBeatmap(s.Beatmaps.First());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private void onBeatmapSetRemoved(BeatmapSetInfo s) => Schedule(() => removeBeatmapSet(s));
|
private void onBeatmapSetRemoved(BeatmapSetInfo s) => Schedule(() => removeBeatmapSet(s));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user