mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 13:20:32 +08:00
Add action to select and start a provided beatmap
This commit is contained in:
@@ -50,5 +50,10 @@ namespace osu.Game.Screens.SelectV2
|
||||
/// Present the provided score at the results screen.
|
||||
/// </summary>
|
||||
void PresentScore(ScoreInfo score);
|
||||
|
||||
/// <summary>
|
||||
/// Selects the provided beatmap and progresses song select to the next screen.
|
||||
/// </summary>
|
||||
void SelectAndStart(BeatmapInfo beatmap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -455,6 +455,15 @@ namespace osu.Game.Screens.SelectV2
|
||||
this.Push(new EditorLoader());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finalises selection on the given <see cref="BeatmapInfo"/>.
|
||||
/// </summary>
|
||||
public void SelectAndStart(BeatmapInfo beatmap)
|
||||
{
|
||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap);
|
||||
OnStart();
|
||||
}
|
||||
|
||||
public void Delete(BeatmapSetInfo beatmapSet) => dialogOverlay?.Push(new BeatmapDeleteDialog(beatmapSet));
|
||||
|
||||
public void ClearScores(BeatmapInfo beatmap) => dialogOverlay?.Push(new BeatmapClearScoresDialog(beatmap));
|
||||
|
||||
Reference in New Issue
Block a user