1
0
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:
Dean Herbert
2025-05-16 18:48:11 +09:00
Unverified
parent 1e29753c1f
commit db7f66dd09
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -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);
}
}
+9
View File
@@ -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));