Add background layer to VisualTestGame.

This commit is contained in:
Dean Herbert
2017-02-14 13:34:57 +09:00
parent 311563d336
commit ce29f0b0be
2 changed files with 3 additions and 2 deletions

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