1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-16 14:52:55 +08:00
osu-lazer/osu.Game/Screens/Edit/Editor.cs
2017-03-14 19:53:20 +08:00

34 lines
1.0 KiB
C#

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Screens.Backgrounds;
namespace osu.Game.Screens.Edit
{
internal class Editor : ScreenWhiteBox
{
private WorkingBeatmap beatmap;
public Editor(WorkingBeatmap wokringBeatmap)
{
beatmap = wokringBeatmap;
}
protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
protected override void OnEntering(Screen last)
{
base.OnEntering(last);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
}
protected override bool OnExiting(Screen next)
{
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
return base.OnExiting(next);
}
}
}