mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Give ScreenTestCase a background stack
This commit is contained in:
parent
255b4a30e0
commit
b90207fa54
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
using osu.Game.Screens;
|
using osu.Game.Screens;
|
||||||
@ -14,12 +15,16 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
private readonly ScreenStack stack;
|
private readonly ScreenStack stack;
|
||||||
|
|
||||||
|
[Cached]
|
||||||
|
private BackgroundScreenStack backgroundStack;
|
||||||
|
|
||||||
protected ScreenTestCase()
|
protected ScreenTestCase()
|
||||||
{
|
{
|
||||||
Add(stack = new ScreenStack
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
backgroundStack = new BackgroundScreenStack { RelativeSizeAxes = Axes.Both },
|
||||||
});
|
stack = new ScreenStack { RelativeSizeAxes = Axes.Both }
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LoadScreen(OsuScreen screen)
|
protected void LoadScreen(OsuScreen screen)
|
||||||
|
Loading…
Reference in New Issue
Block a user