Use description correctly

Required for localisation
This commit is contained in:
Dean Herbert 2019-08-12 16:10:25 +09:00
parent a83afd00b5
commit 75cb0d093b
2 changed files with 10 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public ScopeSelectorTabItem(BeatmapLeaderboardScope value)
Margin = new MarginPadding { Bottom = 8 },
Origin = Anchor.BottomCentre,
Anchor = Anchor.BottomCentre,
Text = value.GetDescription() + " Ranking",
Text = value.GetDescription(),
Font = OsuFont.GetFont(weight: FontWeight.Regular),
},
box = new Box

View File

@ -1,13 +1,22 @@
// 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 System.ComponentModel;
namespace osu.Game.Screens.Select.Leaderboards
{
public enum BeatmapLeaderboardScope
{
[Description("Local Ranking")]
Local,
[Description("Country Ranking")]
Country,
[Description("Global Ranking")]
Global,
[Description("Friend Ranking")]
Friend,
}
}