Update the background according to the currently selected beatmap and blur it within song select.

This commit is contained in:
Thomas Müller
2016-11-19 17:39:43 +01:00
parent 9d88bb4736
commit f8788bb24b
7 changed files with 114 additions and 11 deletions

View File

@ -16,6 +16,8 @@ using osu.Game.Modes.Objects.Drawables;
using osu.Game.Screens.Backgrounds;
using OpenTK.Input;
using MouseState = osu.Framework.Input.MouseState;
using OpenTK;
using osu.Framework.GameModes;
namespace osu.Game.Screens.Play
{
@ -23,7 +25,7 @@ namespace osu.Game.Screens.Play
{
public bool Autoplay;
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
protected override BackgroundMode CreateBackground() => null;
internal override bool ShowOverlays => false;
@ -106,6 +108,13 @@ namespace osu.Game.Screens.Play
};
}
protected override void OnEntering(GameMode last)
{
base.OnEntering(last);
(Background as BackgroundModeBeatmap)?.BlurTo(Vector2.Zero, 1000);
}
protected override void Update()
{
base.Update();