mirror of
https://github.com/ppy/osu.git
synced 2024-11-20 08:12:54 +08:00
24 lines
704 B
C#
24 lines
704 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
|
|
{
|
|
private NewsOverlay news;
|
|
|
|
protected override void LoadComplete()
|
|
{
|
|
base.LoadComplete();
|
|
Add(news = new NewsOverlay());
|
|
AddStep(@"Show", news.Show);
|
|
AddStep(@"Hide", news.Hide);
|
|
|
|
AddStep(@"Show front page", () => news.ShowFrontPage());
|
|
AddStep(@"Custom article", () => news.Current.Value = "Test Article 101");
|
|
}
|
|
}
|
|
}
|