Files
osu-framework/osu.Framework.Tests/VisualTestGame.cs
Dean Herbert 75ed421f60 Automated pass
2023-06-24 00:42:48 +09:00

39 lines
1.1 KiB
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
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 partial class VisualTestGame : TestGame
{
[BackgroundDependencyLoader]
private void load()
{
Child = new SafeAreaContainer
{
RelativeSizeAxes = Axes.Both,
Child = new DrawSizePreservingFillContainer
{
Children = new Drawable[]
{
new TestBrowser(),
new CursorContainer(),
},
}
};
}
public override void SetHost(GameHost host)
{
base.SetHost(host);
host.Window.CursorState |= CursorState.Hidden;
}
}
}