From 86b25a0b3e5690ca83efb2007440dfa07bebd8c1 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Thu, 3 Jul 2025 06:30:30 +0300 Subject: [PATCH] Add "pp" suffix to PP statistic in score tooltip --- osu.Game/Screens/SelectV2/BeatmapLeaderboardScore_Tooltip.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/SelectV2/BeatmapLeaderboardScore_Tooltip.cs b/osu.Game/Screens/SelectV2/BeatmapLeaderboardScore_Tooltip.cs index bc684dfc13..c1089cf764 100644 --- a/osu.Game/Screens/SelectV2/BeatmapLeaderboardScore_Tooltip.cs +++ b/osu.Game/Screens/SelectV2/BeatmapLeaderboardScore_Tooltip.cs @@ -262,7 +262,7 @@ namespace osu.Game.Screens.SelectV2 private readonly ScoreInfo score; public PerformanceStatisticRow(LocalisableString label, Color4 labelColour, ScoreInfo score) - : base(label, labelColour, 0.ToLocalisableString("N0")) + : base(label, labelColour, @"0pp") { this.score = score; } @@ -296,7 +296,7 @@ namespace osu.Game.Screens.SelectV2 if (pp.HasValue) { int ppValue = (int)Math.Round(pp.Value, MidpointRounding.AwayFromZero); - ValueLabel.Text = ppValue.ToLocalisableString("N0"); + ValueLabel.Text = LocalisableString.Interpolate(@$"{ppValue:N0}pp"); if (!scoreInfo.BeatmapInfo!.Status.GrantsPerformancePoints() || hasUnrankedMods(scoreInfo)) Alpha = 0.5f;