Files
osu-framework/osu.Framework.Tests/VisualTestGame.cs
2018-04-11 16:34:32 +09:00

35 lines
950 B
C#

// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Containers;
using osu.Framework.Platform;
using osu.Framework.Testing;
namespace osu.Framework.Tests
{
internal class VisualTestGame : TestGame
{
[BackgroundDependencyLoader]
private void load()
{
Child = new DrawSizePreservingFillContainer
{
Children = new Drawable[]
{
new TestBrowser(),
new CursorContainer(),
},
};
}
public override void SetHost(GameHost host)
{
base.SetHost(host);
host.Window.CursorState |= CursorState.Hidden;
}
}
}