mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 21:40:34 +08:00
Merge pull request #35420 from smoogipoo/qp-handle-beatmap-present
Disable presenting beatmaps during quick play
This commit is contained in:
@@ -40,7 +40,7 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Match
|
||||
/// <summary>
|
||||
/// The main matchmaking screen which houses a custom <see cref="ScreenStack"/> through the life cycle of a single session.
|
||||
/// </summary>
|
||||
public partial class ScreenMatchmaking : OsuScreen, IPreviewTrackOwner
|
||||
public partial class ScreenMatchmaking : OsuScreen, IPreviewTrackOwner, IHandlePresentBeatmap
|
||||
{
|
||||
/// <summary>
|
||||
/// Padding between rows of the content.
|
||||
@@ -421,6 +421,12 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Match
|
||||
music.EnsurePlayingSomething();
|
||||
}
|
||||
|
||||
public void PresentBeatmap(WorkingBeatmap beatmap, RulesetInfo ruleset)
|
||||
{
|
||||
// Do nothing to prevent the user from potentially being kicked out
|
||||
// of gameplay due to the screen performer's internal processes.
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
||||
Reference in New Issue
Block a user