1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

initial wiki overlay

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-04-21 16:21:07 +07:00
parent 5117c51105
commit 460d656a0e
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,22 @@
// 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.Game.Overlays;
namespace osu.Game.Tests.Visual.Online
{
public class TestSceneWikiOverlay : OsuTestScene
{
private WikiOverlay wiki;
[SetUp]
public void SetUp() => Schedule(() => Child = wiki = new WikiOverlay());
[Test]
public void TestOverlay()
{
AddStep("Show", () => wiki.Show());
}
}
}

View File

@ -0,0 +1,17 @@
// 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.Game.Overlays.Wiki;
namespace osu.Game.Overlays
{
public class WikiOverlay : OnlineOverlay<WikiHeader>
{
public WikiOverlay()
: base(OverlayColourScheme.Orange, false)
{
}
protected override WikiHeader CreateHeader() => new WikiHeader();
}
}