mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Move screen management logic to EditorLoader
This commit is contained in:
@ -740,24 +740,9 @@ namespace osu.Game.Screens.Edit
|
||||
return new DifficultyMenuItem(beatmapInfo, isCurrentDifficulty, switchToDifficulty);
|
||||
}
|
||||
|
||||
private void switchToDifficulty(BeatmapInfo beatmapInfo)
|
||||
{
|
||||
if (loader == null)
|
||||
return;
|
||||
private void switchToDifficulty(BeatmapInfo beatmapInfo) => loader?.ScheduleDifficultySwitch(beatmapInfo);
|
||||
|
||||
loader.ValidForResume = true;
|
||||
this.Exit();
|
||||
loader.ScheduleDifficultySwitch(beatmapInfo);
|
||||
}
|
||||
|
||||
private void cancelExit()
|
||||
{
|
||||
if (loader == null)
|
||||
return;
|
||||
|
||||
loader.ValidForResume = false;
|
||||
loader.CancelDifficultySwitch();
|
||||
}
|
||||
private void cancelExit() => loader?.CancelPendingDifficultySwitch();
|
||||
|
||||
public double SnapTime(double time, double? referenceTime) => editorBeatmap.SnapTime(time, referenceTime);
|
||||
|
||||
|
Reference in New Issue
Block a user