mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 17:45:20 +08:00
Fix daily challenge display showing incorrect statistic
This commit is contained in:
parent
dca61eb76c
commit
91dfe4515b
@ -35,6 +35,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
AddSliderStep("weekly best", 0, 250, 1, v => update(s => s.WeeklyStreakBest = v));
|
||||
AddSliderStep("top 10%", 0, 999, 0, v => update(s => s.Top10PercentPlacements = v));
|
||||
AddSliderStep("top 50%", 0, 999, 0, v => update(s => s.Top50PercentPlacements = v));
|
||||
AddSliderStep("playcount", 0, 999, 0, v => update(s => s.PlayCount = v));
|
||||
AddStep("create", () =>
|
||||
{
|
||||
Clear();
|
||||
|
@ -97,8 +97,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
}
|
||||
|
||||
var statistics = User.Value.User.DailyChallengeStatistics;
|
||||
// dailyStreak.Text = UsersStrings.ShowDailyChallengeUnitDay(statistics.DailyStreakCurrent);
|
||||
dailyStreak.Text = $"{statistics.DailyStreakCurrent}d";
|
||||
// dailyStreak.Text = UsersStrings.ShowDailyChallengeUnitDay(statistics.PlayCount);
|
||||
dailyStreak.Text = $"{statistics.PlayCount}d";
|
||||
TooltipContent = new DailyChallengeStreakTooltipData(colourProvider, statistics);
|
||||
Show();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user