mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 17:53:53 +08:00
Add background layer to VisualTestGame.
This commit is contained in:
parent
311563d336
commit
ce29f0b0be
@ -26,8 +26,6 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
|
||||
progressingNotifications.Clear();
|
||||
|
||||
AddInternal(new BackgroundModeDefault() { Depth = 10 });
|
||||
|
||||
Content.Add(manager = new NotificationManager
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
|
@ -11,6 +11,7 @@ using System.Reflection;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Screens.Backgrounds;
|
||||
|
||||
namespace osu.Desktop.VisualTests
|
||||
{
|
||||
@ -20,6 +21,8 @@ namespace osu.Desktop.VisualTests
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
(new BackgroundModeDefault() { Depth = 10 }).Preload(this, AddInternal);
|
||||
|
||||
// Have to construct this here, rather than in the constructor, because
|
||||
// we depend on some dependencies to be loaded within OsuGameBase.load().
|
||||
Add(new TestBrowser());
|
||||
|
Loading…
Reference in New Issue
Block a user