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