mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:59:16 +08:00
Add separate Seasonal Backgrounds setting (Always, Sometimes, Never)
This commit is contained in:
parent
b189e0b7cf
commit
76c0a790b4
@ -131,6 +131,7 @@ namespace osu.Game.Configuration
|
|||||||
Set(OsuSetting.IntroSequence, IntroSequence.Triangles);
|
Set(OsuSetting.IntroSequence, IntroSequence.Triangles);
|
||||||
|
|
||||||
Set(OsuSetting.MenuBackgroundSource, BackgroundSource.Skin);
|
Set(OsuSetting.MenuBackgroundSource, BackgroundSource.Skin);
|
||||||
|
Set(OsuSetting.SeasonalBackgrounds, SeasonalBackgrounds.Sometimes);
|
||||||
}
|
}
|
||||||
|
|
||||||
public OsuConfigManager(Storage storage)
|
public OsuConfigManager(Storage storage)
|
||||||
@ -239,5 +240,6 @@ namespace osu.Game.Configuration
|
|||||||
HitLighting,
|
HitLighting,
|
||||||
MenuBackgroundSource,
|
MenuBackgroundSource,
|
||||||
GameplayDisableWinKey,
|
GameplayDisableWinKey,
|
||||||
|
SeasonalBackgrounds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
osu.Game/Configuration/SeasonalBackgrounds.cs
Normal file
12
osu.Game/Configuration/SeasonalBackgrounds.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
@ -39,6 +39,12 @@ namespace osu.Game.Overlays.Settings.Sections.Audio
|
|||||||
LabelText = "Background source",
|
LabelText = "Background source",
|
||||||
Current = config.GetBindable<BackgroundSource>(OsuSetting.MenuBackgroundSource),
|
Current = config.GetBindable<BackgroundSource>(OsuSetting.MenuBackgroundSource),
|
||||||
Items = Enum.GetValues(typeof(BackgroundSource)).Cast<BackgroundSource>()
|
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>()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user