mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
26 lines
851 B
C#
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);
|
|
}
|
|
}
|
|
}
|