mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Show next Background on showSeasonalBackgrounds.ValueChanged
This commit is contained in:
@ -25,6 +25,7 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
private Bindable<Skin> skin;
|
private Bindable<Skin> skin;
|
||||||
private Bindable<BackgroundSource> mode;
|
private Bindable<BackgroundSource> mode;
|
||||||
private Bindable<IntroSequence> introSequence;
|
private Bindable<IntroSequence> introSequence;
|
||||||
|
private Bindable<SeasonalBackgrounds> showSeasonalBackgrounds;
|
||||||
private readonly SeasonalBackgroundLoader seasonalBackgroundLoader = new SeasonalBackgroundLoader();
|
private readonly SeasonalBackgroundLoader seasonalBackgroundLoader = new SeasonalBackgroundLoader();
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
@ -42,12 +43,14 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
skin = skinManager.CurrentSkin.GetBoundCopy();
|
skin = skinManager.CurrentSkin.GetBoundCopy();
|
||||||
mode = config.GetBindable<BackgroundSource>(OsuSetting.MenuBackgroundSource);
|
mode = config.GetBindable<BackgroundSource>(OsuSetting.MenuBackgroundSource);
|
||||||
introSequence = config.GetBindable<IntroSequence>(OsuSetting.IntroSequence);
|
introSequence = config.GetBindable<IntroSequence>(OsuSetting.IntroSequence);
|
||||||
|
showSeasonalBackgrounds = config.GetBindable<SeasonalBackgrounds>(OsuSetting.SeasonalBackgrounds);
|
||||||
|
|
||||||
user.ValueChanged += _ => Next();
|
user.ValueChanged += _ => Next();
|
||||||
skin.ValueChanged += _ => Next();
|
skin.ValueChanged += _ => Next();
|
||||||
mode.ValueChanged += _ => Next();
|
mode.ValueChanged += _ => Next();
|
||||||
beatmap.ValueChanged += _ => Next();
|
beatmap.ValueChanged += _ => Next();
|
||||||
introSequence.ValueChanged += _ => Next();
|
introSequence.ValueChanged += _ => Next();
|
||||||
|
showSeasonalBackgrounds.ValueChanged += _ => Next();
|
||||||
|
|
||||||
currentDisplay = RNG.Next(0, background_count);
|
currentDisplay = RNG.Next(0, background_count);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user