mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 04:12:55 +08:00
Display exclamation triangle on scores with unprocessed PP
This commit is contained in:
parent
3beb1da3de
commit
54eb2b98a9
@ -23,6 +23,7 @@ using osuTK.Graphics;
|
|||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Framework.Extensions.LocalisationExtensions;
|
using osu.Framework.Extensions.LocalisationExtensions;
|
||||||
using osu.Framework.Graphics.Cursor;
|
using osu.Framework.Graphics.Cursor;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Resources.Localisation.Web;
|
using osu.Game.Resources.Localisation.Web;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||||
@ -177,7 +178,12 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (showPerformancePoints)
|
if (showPerformancePoints)
|
||||||
|
{
|
||||||
|
if (score.PP != null)
|
||||||
content.Add(new StatisticText(score.PP, format: @"N0"));
|
content.Add(new StatisticText(score.PP, format: @"N0"));
|
||||||
|
else
|
||||||
|
content.Add(new ProcessingPPIcon());
|
||||||
|
}
|
||||||
|
|
||||||
content.Add(new ScoreboardTime(score.Date, text_size)
|
content.Add(new ScoreboardTime(score.Date, text_size)
|
||||||
{
|
{
|
||||||
@ -241,5 +247,18 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
Colour = colours.GreenLight;
|
Colour = colours.GreenLight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class ProcessingPPIcon : SpriteIcon, IHasTooltip
|
||||||
|
{
|
||||||
|
public LocalisableString TooltipText => ScoresStrings.StatusProcessing;
|
||||||
|
|
||||||
|
public ProcessingPPIcon()
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre;
|
||||||
|
Origin = Anchor.Centre;
|
||||||
|
Size = new Vector2(text_size);
|
||||||
|
Icon = FontAwesome.Solid.ExclamationTriangle;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user