1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 14:42:56 +08:00

Use existing localisations in BeatmapInfoWedge

This commit is contained in:
Magnus-Cosmos 2023-09-02 22:49:29 -04:00
parent ac3d7327df
commit d674856e29
No known key found for this signature in database
GPG Key ID: 97018602A1AEE703

View File

@ -30,6 +30,7 @@ using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.UI;
using osu.Game.Graphics.Containers;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Screens.Select
{
@ -371,7 +372,7 @@ namespace osu.Game.Screens.Select
{
new InfoLabel(new BeatmapStatistic
{
Name = $"Length (Drain: {playableBeatmap.CalculateDrainLength().ToFormattedDuration().ToString()})",
Name = BeatmapsetsStrings.ShowStatsTotalLength(playableBeatmap.CalculateDrainLength().ToFormattedDuration()),
CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Length),
Content = working.BeatmapInfo.Length.ToFormattedDuration().ToString(),
}),
@ -415,7 +416,7 @@ namespace osu.Game.Screens.Select
bpmLabelContainer.Child = new InfoLabel(new BeatmapStatistic
{
Name = "BPM",
Name = BeatmapsetsStrings.ShowStatsBpm,
CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Bpm),
Content = labelText
});