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;
|
2020-12-18 14:16:36 +08:00
|
|
|
using osu.Game.Online.API;
|
2021-11-04 17:02:44 +08:00
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2018-07-11 15:30:33 +08:00
|
|
|
using osu.Game.Screens.Menu;
|
|
|
|
|
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", () =>
|
|
|
|
{
|
2021-11-04 17:02:44 +08:00
|
|
|
((DummyAPIAccess)API).LocalUser.Value = new APIUser
|
2019-03-13 11:57:01 +08:00
|
|
|
{
|
2019-09-13 16:15:33 +08:00
|
|
|
Username = API.LocalUser.Value.Username,
|
2020-03-11 01:35:36 +08:00
|
|
|
Id = API.LocalUser.Value.Id + 1,
|
2019-09-13 16:15:33 +08:00
|
|
|
IsSupporter = !API.LocalUser.Value.IsSupporter,
|
2019-03-13 11:57:01 +08:00
|
|
|
};
|
|
|
|
});
|
2018-07-11 15:30:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|