Display placeholder for user profile scores

This commit is contained in:
Salman Ahmed
2022-07-25 09:28:54 +03:00
parent f54cee0270
commit e402e919ab
2 changed files with 6 additions and 3 deletions

View File

@ -19,6 +19,7 @@ using osu.Game.Online.API.Requests.Responses;
using osu.Game.Online.Leaderboards;
using osu.Game.Rulesets;
using osu.Game.Rulesets.UI;
using osu.Game.Scoring.Drawables;
using osu.Game.Utils;
using osuTK;
@ -246,6 +247,9 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
};
}
if (Score.Beatmap?.Status.GrantsPerformancePoints() == true)
return new UnprocessedPerformancePointsPlaceholder { Size = new Vector2(16), Colour = colourProvider.Highlight1 };
return new OsuSpriteText
{
Font = OsuFont.GetFont(weight: FontWeight.Bold),