1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00
osu-lazer/osu.Game.Tests/Visual/Online/TestSceneNewsOverlay.cs
2020-07-09 03:40:14 +03:00

28 lines
832 B
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.Game.Overlays;
namespace osu.Game.Tests.Visual.Online
{
public class TestSceneNewsOverlay : OsuTestScene
{
protected override bool UseOnlineAPI => true;
protected override void LoadComplete()
{
base.LoadComplete();
NewsOverlay news;
Add(news = new NewsOverlay());
AddStep("Show", news.Show);
AddStep("Hide", news.Hide);
AddStep("Show front page", () => news.ShowFrontPage());
AddStep("Custom article", () => news.ShowArticle("Test Article 101"));
AddStep("Custom article", () => news.ShowArticle("Test Article 102"));
}
}
}