Show bonus judgements on expanded panel

This commit is contained in:
Dean Herbert 2020-10-07 16:17:28 +09:00
parent c0bc6a75b3
commit 6ac70945f2
2 changed files with 2 additions and 4 deletions

View File

@ -217,9 +217,6 @@ public IEnumerable<HitResultDisplayStatistic> GetStatisticsForDisplay()
{ {
foreach (var r in Ruleset.CreateInstance().GetHitResults()) foreach (var r in Ruleset.CreateInstance().GetHitResults())
{ {
if (r.result.IsBonus())
continue;
int value = Statistics.GetOrDefault(r.result); int value = Statistics.GetOrDefault(r.result);
switch (r.result) switch (r.result)

View File

@ -12,6 +12,7 @@
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Online.Leaderboards; using osu.Game.Online.Leaderboards;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring; using osu.Game.Scoring;
using osu.Game.Screens.Play.HUD; using osu.Game.Screens.Play.HUD;
using osu.Game.Users; using osu.Game.Users;
@ -115,7 +116,7 @@ private void load()
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 5), Spacing = new Vector2(0, 5),
ChildrenEnumerable = score.GetStatisticsForDisplay().Select(createStatistic) ChildrenEnumerable = score.GetStatisticsForDisplay().Where(s => !s.Result.IsBonus()).Select(createStatistic)
}, },
new FillFlowContainer new FillFlowContainer
{ {