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:
parent
03947e5b85
commit
0bc59e17dc
@ -6,7 +6,6 @@ namespace osu.Game.Configuration
|
||||
public enum BackgroundMode
|
||||
{
|
||||
Default,
|
||||
Seasonal,
|
||||
Beatmap
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user