Move config setting logic to background loader

This commit is contained in:
Bartłomiej Dach
2020-10-30 20:32:14 +01:00
parent cf0e8e0a62
commit 67a325f47d
2 changed files with 18 additions and 13 deletions

View File

@ -79,16 +79,12 @@ namespace osu.Game.Screens.Backgrounds
Background newBackground;
string backgroundName;
if (seasonalBackgroundMode.Value == SeasonalBackgroundMode.Always
|| (seasonalBackgroundMode.Value == SeasonalBackgroundMode.Sometimes && seasonalBackgroundLoader.IsInSeason))
{
var seasonalBackground = seasonalBackgroundLoader.LoadBackground();
var seasonalBackground = seasonalBackgroundLoader.LoadNextBackground();
if (seasonalBackground != null)
{
seasonalBackground.Depth = currentDisplay;
return seasonalBackground;
}
if (seasonalBackground != null)
{
seasonalBackground.Depth = currentDisplay;
return seasonalBackground;
}
switch (introSequence.Value)