osu/osu.Game/Screens/Play/ScreenWithBeatmapBackground.cs
2019-03-14 16:26:34 +09:00

26 lines
851 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.Allocation;
using osu.Framework.Bindables;
using osu.Game.Configuration;
using osu.Game.Screens.Backgrounds;
namespace osu.Game.Screens.Play
{
public abstract class ScreenWithBeatmapBackground : OsuScreen
{
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap.Value);
protected new BackgroundScreenBeatmap Background => (BackgroundScreenBeatmap)base.Background;
protected Bindable<bool> ShowStoryboard;
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
ShowStoryboard = config.GetBindable<bool>(OsuSetting.ShowStoryboard);
}
}
}