Show count of visible beatmaps at song select

This commit is contained in:
Dean Herbert
2023-03-03 15:25:55 +09:00
parent 29be26b150
commit dc669835e2
4 changed files with 90 additions and 57 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// 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.Framework.Localisation;
@ -19,6 +19,11 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString LocallyModifiedTooltip => new TranslatableString(getKey(@"locally_modified_tooltip"), @"Has been locally modified");
/// <summary>
/// "{0} beatmaps displayed"
/// </summary>
public static LocalisableString BeatmapsDisplayed(int arg0) => new TranslatableString(getKey(@"beatmaps_displayed"), @"{0:#,0} beatmaps displayed", arg0);
private static string getKey(string key) => $@"{prefix}:{key}";
}
}