mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
initial wiki overlay
This commit is contained in:
parent
5117c51105
commit
460d656a0e
22
osu.Game.Tests/Visual/Online/TestSceneWikiOverlay.cs
Normal file
22
osu.Game.Tests/Visual/Online/TestSceneWikiOverlay.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
}
|
17
osu.Game/Overlays/WikiOverlay.cs
Normal file
17
osu.Game/Overlays/WikiOverlay.cs
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user