mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
35 lines
950 B
C#
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;
|
|
}
|
|
}
|
|
}
|