mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:12:56 +08:00
Pause Editor
sample playback while popup dialog is shown
This commit is contained in:
parent
909f8d1d98
commit
4d91204faf
@ -508,6 +508,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
if (isNewBeatmap || HasUnsavedChanges)
|
if (isNewBeatmap || HasUnsavedChanges)
|
||||||
{
|
{
|
||||||
|
samplePlaybackDisabled.Value = true;
|
||||||
dialogOverlay?.Push(new PromptForSaveDialog(confirmExit, confirmExitWithSave, cancelExit));
|
dialogOverlay?.Push(new PromptForSaveDialog(confirmExit, confirmExitWithSave, cancelExit));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -756,7 +757,11 @@ namespace osu.Game.Screens.Edit
|
|||||||
ClipboardContent = editorBeatmap.BeatmapInfo.RulesetID == nextBeatmap.RulesetID ? clipboard.Value : string.Empty
|
ClipboardContent = editorBeatmap.BeatmapInfo.RulesetID == nextBeatmap.RulesetID ? clipboard.Value : string.Empty
|
||||||
});
|
});
|
||||||
|
|
||||||
private void cancelExit() => loader?.CancelPendingDifficultySwitch();
|
private void cancelExit()
|
||||||
|
{
|
||||||
|
samplePlaybackDisabled.Value = false;
|
||||||
|
loader?.CancelPendingDifficultySwitch();
|
||||||
|
}
|
||||||
|
|
||||||
public double SnapTime(double time, double? referenceTime) => editorBeatmap.SnapTime(time, referenceTime);
|
public double SnapTime(double time, double? referenceTime) => editorBeatmap.SnapTime(time, referenceTime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user