2017-02-07 13:59:30 +09:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-09-24 00:39:20 +09:00
|
|
|
|
|
2016-10-26 17:26:26 +09:00
|
|
|
|
using osu.Framework;
|
2016-09-24 00:39:20 +09:00
|
|
|
|
using osu.Framework.GameModes.Testing;
|
|
|
|
|
using osu.Framework.Graphics.Cursor;
|
2016-10-13 15:10:00 -04:00
|
|
|
|
using osu.Game.Database;
|
2016-09-24 00:39:20 +09:00
|
|
|
|
using osu.Game;
|
2016-10-24 14:57:00 -04:00
|
|
|
|
using osu.Framework.Desktop.Platform;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Collections.Generic;
|
2016-11-08 18:13:20 -05:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-02-14 13:34:57 +09:00
|
|
|
|
using osu.Game.Screens.Backgrounds;
|
2016-09-24 00:39:20 +09:00
|
|
|
|
|
2016-10-26 17:26:26 +09:00
|
|
|
|
namespace osu.Desktop.VisualTests
|
2016-09-24 00:39:20 +09:00
|
|
|
|
{
|
|
|
|
|
class VisualTestGame : OsuGameBase
|
|
|
|
|
{
|
2016-11-12 18:34:36 +01:00
|
|
|
|
protected override void LoadComplete()
|
2016-09-24 00:39:20 +09:00
|
|
|
|
{
|
2016-11-12 18:34:36 +01:00
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
2017-02-14 13:34:57 +09:00
|
|
|
|
(new BackgroundModeDefault() { Depth = 10 }).Preload(this, AddInternal);
|
|
|
|
|
|
2016-11-12 18:34:36 +01:00
|
|
|
|
// Have to construct this here, rather than in the constructor, because
|
|
|
|
|
// we depend on some dependencies to be loaded within OsuGameBase.load().
|
2016-09-24 00:39:20 +09:00
|
|
|
|
Add(new TestBrowser());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|