1
0
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:
Dean Herbert 2017-02-14 13:34:57 +09:00
parent 311563d336
commit ce29f0b0be
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,6 @@ namespace osu.Desktop.VisualTests.Tests
progressingNotifications.Clear();
AddInternal(new BackgroundModeDefault() { Depth = 10 });
Content.Add(manager = new NotificationManager
{
Anchor = Anchor.TopRight,

View File

@ -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());