mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 03:20:16 +08:00
Add "pp" suffix to PP statistic in score tooltip
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user