mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Load seasonal backgrounds according to setting
This commit is contained in:
@ -106,6 +106,18 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
else
|
else
|
||||||
newBackground = new Background(backgroundName);
|
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;
|
newBackground.Depth = currentDisplay;
|
||||||
|
|
||||||
return newBackground;
|
return newBackground;
|
||||||
|
Reference in New Issue
Block a user