2019-05-14 14:14:00 +08:00
|
|
|
// 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 NUnit.Framework;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Online
|
|
|
|
{
|
|
|
|
[TestFixture]
|
2019-05-15 03:37:25 +08:00
|
|
|
public class TestSceneFullscreenOverlay : OsuTestScene
|
2019-05-14 14:14:00 +08:00
|
|
|
{
|
|
|
|
private FullscreenOverlay overlay;
|
|
|
|
|
|
|
|
protected override void LoadComplete()
|
|
|
|
{
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
|
|
Add(overlay = new TestFullscreenOverlay());
|
|
|
|
AddStep(@"toggle", overlay.ToggleVisibility);
|
|
|
|
}
|
|
|
|
|
|
|
|
private class TestFullscreenOverlay : FullscreenOverlay
|
|
|
|
{
|
|
|
|
public TestFullscreenOverlay()
|
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
Colour = Color4.Black,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|