mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Load seasonal backgrounds according to setting
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user