Fix regressed screen test cases

This commit is contained in:
Dean Herbert
2019-02-15 17:01:06 +09:00
parent 31bbefb9a8
commit 65721a01ab
9 changed files with 26 additions and 28 deletions

View File

@ -1,7 +1,9 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Platform;
using osu.Framework.Screens;
using osu.Framework.Testing;
using osu.Game.Graphics;
using osu.Game.Screens.Backgrounds;
@ -14,10 +16,10 @@ namespace osu.Game.Tests
{
base.LoadComplete();
LoadComponentAsync(new BackgroundScreenDefault
LoadComponentAsync(new ScreenStack(new BackgroundScreenDefault { Colour = OsuColour.Gray(0.5f) })
{
Colour = OsuColour.Gray(0.5f),
Depth = 10
Depth = 10,
RelativeSizeAxes = Axes.Both,
}, AddInternal);
// Have to construct this here, rather than in the constructor, because