1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

remove Seasonal and apply suggestions

This commit is contained in:
LeNitrous 2019-09-24 21:56:32 +08:00
parent 03947e5b85
commit 0bc59e17dc
3 changed files with 2 additions and 13 deletions

View File

@ -6,7 +6,6 @@ namespace osu.Game.Configuration
public enum BackgroundMode
{
Default,
Seasonal,
Beatmap
}
}

View File

@ -155,13 +155,11 @@ namespace osu.Game.Graphics.Containers
private class ScalingBackgroundScreen : BackgroundScreenDefault
{
private Bindable<WorkingBeatmap> beatmap;
[BackgroundDependencyLoader]
private void load(IBindable<WorkingBeatmap> beatmap)
{
this.beatmap = (Bindable<WorkingBeatmap>)beatmap;
this.beatmap.ValueChanged += _ => Next();
beatmap.ValueChanged += _ => Next();
}
public override void OnEntering(IScreen last)

View File

@ -87,15 +87,7 @@ namespace osu.Game.Screens.Backgrounds
}
}
else
{
switch (mode.Value)
{
case BackgroundMode.Seasonal:
default:
newBackground = new Background(backgroundName);
break;
}
}
newBackground = new Background(backgroundName);
newBackground.Depth = currentDisplay;