mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 05:52:54 +08:00
Fix score panel not showing silver s/ss badges on hd/fl plays
This commit is contained in:
parent
9f8aadc516
commit
fa252d5e95
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -9,6 +10,7 @@ using osu.Framework.Graphics.Colour;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
using osu.Game.Rulesets.Mods;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
@ -191,8 +193,8 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
|
|||||||
Padding = new MarginPadding { Vertical = -15, Horizontal = -20 },
|
Padding = new MarginPadding { Vertical = -15, Horizontal = -20 },
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new RankBadge(1f, ScoreRank.X),
|
new RankBadge(1f, score.Mods.Any(m => m is ModHidden || m is ModFlashlight) ? ScoreRank.XH : ScoreRank.X),
|
||||||
new RankBadge(0.95f, ScoreRank.S),
|
new RankBadge(0.95f, score.Mods.Any(m => m is ModHidden || m is ModFlashlight) ? ScoreRank.SH : ScoreRank.S),
|
||||||
new RankBadge(0.9f, ScoreRank.A),
|
new RankBadge(0.9f, ScoreRank.A),
|
||||||
new RankBadge(0.8f, ScoreRank.B),
|
new RankBadge(0.8f, ScoreRank.B),
|
||||||
new RankBadge(0.7f, ScoreRank.C),
|
new RankBadge(0.7f, ScoreRank.C),
|
||||||
|
Loading…
Reference in New Issue
Block a user