2019-08-07 13:33:55 +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.
|
|
|
|
|
|
|
|
|
|
using osu.Game.Overlays.BeatmapSet;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
|
using osu.Game.Screens.Select.Leaderboards;
|
2020-02-05 05:39:51 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Game.Overlays;
|
2019-08-07 13:33:55 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Online
|
|
|
|
|
{
|
|
|
|
|
public class TestSceneLeaderboardScopeSelector : OsuTestScene
|
|
|
|
|
{
|
2020-02-05 05:39:51 +08:00
|
|
|
|
[Cached]
|
|
|
|
|
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
|
|
|
|
|
2019-08-07 13:33:55 +08:00
|
|
|
|
public TestSceneLeaderboardScopeSelector()
|
|
|
|
|
{
|
|
|
|
|
Bindable<BeatmapLeaderboardScope> scope = new Bindable<BeatmapLeaderboardScope>();
|
|
|
|
|
|
2019-08-07 13:49:04 +08:00
|
|
|
|
Add(new LeaderboardScopeSelector
|
2019-08-07 13:33:55 +08:00
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
Current = { BindTarget = scope }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
AddStep(@"Select global", () => scope.Value = BeatmapLeaderboardScope.Global);
|
|
|
|
|
AddStep(@"Select country", () => scope.Value = BeatmapLeaderboardScope.Country);
|
|
|
|
|
AddStep(@"Select friend", () => scope.Value = BeatmapLeaderboardScope.Friend);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|