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 public enum BackgroundMode
{ {
Default, Default,
Seasonal,
Beatmap Beatmap
} }
} }

View File

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

View File

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