mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Replace ConfigureBackgroundUpdate with OnEntering
This commit is contained in:
@ -277,8 +277,6 @@ namespace osu.Game.Screens.Play
|
|||||||
if (!loadedSuccessfully)
|
if (!loadedSuccessfully)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ConfigureBackgroundUpdate();
|
|
||||||
|
|
||||||
Content.Alpha = 0;
|
Content.Alpha = 0;
|
||||||
Content
|
Content
|
||||||
.ScaleTo(0.7f)
|
.ScaleTo(0.7f)
|
||||||
|
@ -88,8 +88,6 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
|
|
||||||
ConfigureBackgroundUpdate();
|
|
||||||
|
|
||||||
Content.ScaleTo(0.7f);
|
Content.ScaleTo(0.7f);
|
||||||
|
|
||||||
contentIn();
|
contentIn();
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Screens;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Screens.Backgrounds;
|
using osu.Game.Screens.Backgrounds;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
@ -42,8 +43,9 @@ namespace osu.Game.Screens.Play
|
|||||||
UserAudioOffset = config.GetBindable<double>(OsuSetting.AudioOffset);
|
UserAudioOffset = config.GetBindable<double>(OsuSetting.AudioOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void ConfigureBackgroundUpdate()
|
protected override void OnEntering(Screen last)
|
||||||
{
|
{
|
||||||
|
base.OnEntering(last);
|
||||||
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
|
DimLevel.ValueChanged += _ => UpdateBackgroundElements();
|
||||||
BlurLevel.ValueChanged += _ => UpdateBackgroundElements();
|
BlurLevel.ValueChanged += _ => UpdateBackgroundElements();
|
||||||
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
|
ShowStoryboard.ValueChanged += _ => UpdateBackgroundElements();
|
||||||
|
Reference in New Issue
Block a user