mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
Merge pull request #29467 from EVAST9919/online-bg-box
Remove extra box in `OnlinePlayBackgroundScreen`
This commit is contained in:
commit
ba4956ace4
@ -3,10 +3,8 @@
|
||||
|
||||
using System.Threading;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Online.Rooms;
|
||||
@ -20,16 +18,6 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
private CancellationTokenSource? cancellationSource;
|
||||
private PlaylistItemBackground? background;
|
||||
|
||||
protected OnlinePlayBackgroundScreen()
|
||||
{
|
||||
AddInternal(new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Depth = float.MinValue,
|
||||
Colour = ColourInfo.GradientVertical(Color4.Black.Opacity(0.9f), Color4.Black.Opacity(0.6f))
|
||||
});
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
@ -83,6 +71,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
}
|
||||
|
||||
newBackground.Depth = newDepth;
|
||||
newBackground.Colour = ColourInfo.GradientVertical(new Color4(0.1f, 0.1f, 0.1f, 1f), new Color4(0.4f, 0.4f, 0.4f, 1f));
|
||||
newBackground.BlurTo(new Vector2(10));
|
||||
|
||||
AddInternal(background = newBackground);
|
||||
|
Loading…
Reference in New Issue
Block a user