mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 03:55:30 +08:00
Hide daily challenge stats if there are no plays
This commit is contained in:
parent
ab8771900a
commit
362b4bbc56
@ -107,6 +107,12 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
|||||||
|
|
||||||
APIUserDailyChallengeStatistics stats = User.Value.User.DailyChallengeStatistics;
|
APIUserDailyChallengeStatistics stats = User.Value.User.DailyChallengeStatistics;
|
||||||
|
|
||||||
|
if (stats.PlayCount == 0)
|
||||||
|
{
|
||||||
|
Hide();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dailyPlayCount.Text = DailyChallengeStatsDisplayStrings.UnitDay(stats.PlayCount.ToLocalisableString("N0"));
|
dailyPlayCount.Text = DailyChallengeStatsDisplayStrings.UnitDay(stats.PlayCount.ToLocalisableString("N0"));
|
||||||
dailyPlayCount.Colour = colours.ForRankingTier(TierForPlayCount(stats.PlayCount));
|
dailyPlayCount.Colour = colours.ForRankingTier(TierForPlayCount(stats.PlayCount));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user