mirror of
https://github.com/ppy/osu
synced 2025-01-05 05:39:49 +00:00
Load seasonal backgrounds according to setting
This commit is contained in:
parent
d9846fad37
commit
fb1e09b3e7
@ -106,6 +106,18 @@ namespace osu.Game.Screens.Backgrounds
|
||||
else
|
||||
newBackground = new Background(backgroundName);
|
||||
|
||||
switch (showSeasonalBackgrounds.Value)
|
||||
{
|
||||
case SeasonalBackgrounds.Sometimes:
|
||||
if (RNG.NextBool())
|
||||
goto case SeasonalBackgrounds.Always;
|
||||
break;
|
||||
|
||||
case SeasonalBackgrounds.Always:
|
||||
newBackground = seasonalBackgroundLoader.LoadBackground() ?? newBackground;
|
||||
break;
|
||||
}
|
||||
|
||||
newBackground.Depth = currentDisplay;
|
||||
|
||||
return newBackground;
|
||||
|
Loading…
Reference in New Issue
Block a user