// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Beatmaps; namespace osu.Game.Screens.Edit { /// /// TODO: eventually make this inherit Screen and add a local screen stack inside the Editor. /// public abstract class EditorScreen : Container { [Resolved] protected IBindable Beatmap { get; private set; } [Resolved] protected EditorBeatmap EditorBeatmap { get; private set; } protected override Container Content => content; private readonly Container content; protected EditorScreen() { Anchor = Anchor.Centre; Origin = Anchor.Centre; RelativeSizeAxes = Axes.Both; InternalChild = content = new Container { RelativeSizeAxes = Axes.Both }; } protected override void LoadComplete() { base.LoadComplete(); this.FadeTo(0) .Then() .FadeTo(1f, 250, Easing.OutQuint); } public void Exit() { Expire(); } } }