2019-01-24 16:43:03 +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.
|
2018-07-11 15:30:33 +08:00
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Game.Screens.Menu;
|
2019-03-13 11:57:01 +08:00
|
|
|
using osu.Game.Users;
|
2018-07-11 15:30:33 +08:00
|
|
|
|
2019-03-25 00:02:36 +08:00
|
|
|
namespace osu.Game.Tests.Visual.Menus
|
2018-07-11 15:30:33 +08:00
|
|
|
{
|
2019-05-15 03:37:25 +08:00
|
|
|
public class TestSceneDisclaimer : ScreenTestScene
|
2018-07-11 15:30:33 +08:00
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
2019-09-13 16:15:33 +08:00
|
|
|
private void load()
|
2018-07-11 15:30:33 +08:00
|
|
|
{
|
2019-03-13 11:57:01 +08:00
|
|
|
AddStep("load disclaimer", () => LoadScreen(new Disclaimer()));
|
|
|
|
|
|
|
|
AddStep("toggle support", () =>
|
|
|
|
{
|
2019-09-13 16:15:33 +08:00
|
|
|
API.LocalUser.Value = new User
|
2019-03-13 11:57:01 +08:00
|
|
|
{
|
2019-09-13 16:15:33 +08:00
|
|
|
Username = API.LocalUser.Value.Username,
|
|
|
|
Id = API.LocalUser.Value.Id,
|
|
|
|
IsSupporter = !API.LocalUser.Value.IsSupporter,
|
2019-03-13 11:57:01 +08:00
|
|
|
};
|
|
|
|
});
|
2018-07-11 15:30:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|