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