mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Combine and simplify beatmap change logic
This commit is contained in:
@ -6,7 +6,6 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Screens;
|
||||
using osu.Game.Screens.Backgrounds;
|
||||
@ -155,15 +154,6 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
private class ScalingBackgroundScreen : BackgroundScreenDefault
|
||||
{
|
||||
private IBindable<WorkingBeatmap> beatmap;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(IBindable<WorkingBeatmap> beatmap)
|
||||
{
|
||||
this.beatmap = beatmap.GetBoundCopy();
|
||||
this.beatmap.ValueChanged += _ => Next();
|
||||
}
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
{
|
||||
this.FadeInFromZero(4000, Easing.OutQuint);
|
||||
|
Reference in New Issue
Block a user