Add separate Seasonal Backgrounds setting (Always, Sometimes, Never)

This commit is contained in:
Max Hübner 2020-10-29 17:28:04 +01:00
parent b189e0b7cf
commit 76c0a790b4
3 changed files with 20 additions and 0 deletions

View File

@ -131,6 +131,7 @@ namespace osu.Game.Configuration
Set(OsuSetting.IntroSequence, IntroSequence.Triangles);
Set(OsuSetting.MenuBackgroundSource, BackgroundSource.Skin);
Set(OsuSetting.SeasonalBackgrounds, SeasonalBackgrounds.Sometimes);
}
public OsuConfigManager(Storage storage)
@ -239,5 +240,6 @@ namespace osu.Game.Configuration
HitLighting,
MenuBackgroundSource,
GameplayDisableWinKey,
SeasonalBackgrounds
}
}

View File

@ -0,0 +1,12 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Configuration
{
public enum SeasonalBackgrounds
{
Always,
Sometimes,
Never
}
}

View File

@ -39,6 +39,12 @@ namespace osu.Game.Overlays.Settings.Sections.Audio
LabelText = "Background source",
Current = config.GetBindable<BackgroundSource>(OsuSetting.MenuBackgroundSource),
Items = Enum.GetValues(typeof(BackgroundSource)).Cast<BackgroundSource>()
},
new SettingsDropdown<SeasonalBackgrounds>
{
LabelText = "Seasonal backgrounds",
Current = config.GetBindable<SeasonalBackgrounds>(OsuSetting.SeasonalBackgrounds),
Items = Enum.GetValues(typeof(SeasonalBackgrounds)).Cast<SeasonalBackgrounds>()
}
};
}