osu/osu.Game/Overlays/BeatmapSet/LeaderboardScopeSelector.cs

31 lines
938 B
C#
Raw Normal View History

2019-08-07 05:33:55 +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.
using osu.Game.Screens.Select.Leaderboards;
using osu.Game.Graphics.UserInterface;
using osu.Game.Graphics;
using osu.Framework.Allocation;
using osuTK.Graphics;
namespace osu.Game.Overlays.BeatmapSet
{
public class LeaderboardScopeSelector : GradientLineTabControl<BeatmapLeaderboardScope>
2019-08-07 05:33:55 +00:00
{
2019-08-12 15:14:37 +00:00
protected override bool AddEnumEntriesAutomatically => false;
2019-08-12 10:16:57 +00:00
2019-08-07 05:33:55 +00:00
public LeaderboardScopeSelector()
{
AddItem(BeatmapLeaderboardScope.Global);
AddItem(BeatmapLeaderboardScope.Country);
AddItem(BeatmapLeaderboardScope.Friend);
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AccentColour = colours.Blue;
LineColour = Color4.Gray;
2019-08-07 05:33:55 +00:00
}
}
}