Show next Background on showSeasonalBackgrounds.ValueChanged

This commit is contained in:
Max Hübner 2020-10-29 17:44:23 +01:00
parent bf4d99dfe7
commit 34371b8888
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ public class BackgroundScreenDefault : BackgroundScreen
private Bindable<Skin> skin;
private Bindable<BackgroundSource> mode;
private Bindable<IntroSequence> introSequence;
private Bindable<SeasonalBackgrounds> showSeasonalBackgrounds;
private readonly SeasonalBackgroundLoader seasonalBackgroundLoader = new SeasonalBackgroundLoader();
[Resolved]
@ -42,12 +43,14 @@ private void load(IAPIProvider api, SkinManager skinManager, OsuConfigManager co
skin = skinManager.CurrentSkin.GetBoundCopy();
mode = config.GetBindable<BackgroundSource>(OsuSetting.MenuBackgroundSource);
introSequence = config.GetBindable<IntroSequence>(OsuSetting.IntroSequence);
showSeasonalBackgrounds = config.GetBindable<SeasonalBackgrounds>(OsuSetting.SeasonalBackgrounds);
user.ValueChanged += _ => Next();
skin.ValueChanged += _ => Next();
mode.ValueChanged += _ => Next();
beatmap.ValueChanged += _ => Next();
introSequence.ValueChanged += _ => Next();
showSeasonalBackgrounds.ValueChanged += _ => Next();
currentDisplay = RNG.Next(0, background_count);