mirror of https://github.com/ppy/osu
Replace ConfigureBackgroundUpdate with OnEntering
This commit is contained in:
parent
8f3f886805
commit
2cb197d0c4
|
@ -277,8 +277,6 @@ protected override void OnEntering(Screen last)
|
|||
if (!loadedSuccessfully)
|
||||
return;
|
||||
|
||||
ConfigureBackgroundUpdate();
|
||||
|
||||
Content.Alpha = 0;
|
||||
Content
|
||||
.ScaleTo(0.7f)
|
||||
|
|
|
@ -88,8 +88,6 @@ protected override void OnEntering(Screen last)
|
|||
{
|
||||
base.OnEntering(last);
|
||||
|
||||
ConfigureBackgroundUpdate();
|
||||
|
||||
Content.ScaleTo(0.7f);
|
||||
|
||||
contentIn();
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Screens.Backgrounds;
|
||||
using OpenTK;
|
||||
|
@ -42,8 +43,9 @@ private void load(OsuConfigManager config)
|
|||
UserAudioOffset = config.GetBindable<double>(OsuSetting.AudioOffset);
|
||||
}
|
||||
|
||||
protected void ConfigureBackgroundUpdate()
|
||||
protected override void OnEntering(Screen last)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
|
||||
BlurLevel.ValueChanged += _ => UpdateBackgroundElements();
|
||||
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
|
||||
|
|
Loading…
Reference in New Issue