mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 07:47:25 +08:00
28 lines
773 B
C#
28 lines
773 B
C#
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||
|
// See the LICENCE file in the repository root for full licence text.
|
||
|
|
||
|
using osu.Framework.Screens;
|
||
|
using osu.Game.Screens.Play;
|
||
|
|
||
|
namespace osu.Game.Screens.Edit
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Transition screen for the editor.
|
||
|
/// Used to avoid backing out to main menu/song select when switching difficulties from within the editor.
|
||
|
/// </summary>
|
||
|
public class EditorLoader : ScreenWithBeatmapBackground
|
||
|
{
|
||
|
public override void OnEntering(IScreen last)
|
||
|
{
|
||
|
base.OnEntering(last);
|
||
|
PushEditor();
|
||
|
}
|
||
|
|
||
|
public void PushEditor()
|
||
|
{
|
||
|
this.Push(new Editor(this));
|
||
|
ValidForResume = false;
|
||
|
}
|
||
|
}
|
||
|
}
|