diff --git a/osu.Game/Overlays/BeatmapSet/LeaderboardScopeSelector.cs b/osu.Game/Overlays/BeatmapSet/LeaderboardScopeSelector.cs index ed00f4b0e2..55dfa52143 100644 --- a/osu.Game/Overlays/BeatmapSet/LeaderboardScopeSelector.cs +++ b/osu.Game/Overlays/BeatmapSet/LeaderboardScopeSelector.cs @@ -1,12 +1,15 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. +using System; using osu.Game.Graphics.UserInterface; using osu.Framework.Allocation; using osuTK.Graphics; using osu.Framework.Graphics.UserInterface; using osu.Framework.Input.Events; using osu.Framework.Graphics; +using osu.Framework.Localisation; +using osu.Game.Resources.Localisation.Web; using osu.Game.Screens.Play.Leaderboards; namespace osu.Game.Overlays.BeatmapSet @@ -39,6 +42,27 @@ namespace osu.Game.Overlays.BeatmapSet { } + protected override LocalisableString CreateText() + { + switch (Value) + { + case BeatmapLeaderboardScope.Global: + return BeatmapsetsStrings.ShowScoreboardGlobal; + + case BeatmapLeaderboardScope.Country: + return BeatmapsetsStrings.ShowScoreboardCountry; + + case BeatmapLeaderboardScope.Friend: + return BeatmapsetsStrings.ShowScoreboardFriend; + + case BeatmapLeaderboardScope.Team: + return BeatmapsetsStrings.ShowScoreboardTeam; + + default: + throw new ArgumentOutOfRangeException(); + } + } + protected override bool OnHover(HoverEvent e) { Text.FadeColour(AccentColour);