From 18d3e9154ffcedaf7971675b8aed422b789f759b Mon Sep 17 00:00:00 2001 From: cdwcgt Date: Sun, 10 Dec 2023 12:47:21 +0900 Subject: [PATCH] add color for miss but miss HitEvent have no position? --- osu.Game.Rulesets.Osu/Skinning/HitPositionMeter.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Skinning/HitPositionMeter.cs b/osu.Game.Rulesets.Osu/Skinning/HitPositionMeter.cs index 71bc94be87..43cc09f259 100644 --- a/osu.Game.Rulesets.Osu/Skinning/HitPositionMeter.cs +++ b/osu.Game.Rulesets.Osu/Skinning/HitPositionMeter.cs @@ -1,8 +1,6 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. -using System; -using System.Linq; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; @@ -15,10 +13,7 @@ using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects.Legacy; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets.Osu.Objects; -using osu.Game.Rulesets.Scoring; -using osu.Game.Screens.Play; using osu.Game.Screens.Play.HUD.HitErrorMeters; -using osu.Game.Skinning; using osuTK; using osuTK.Graphics; @@ -129,6 +124,9 @@ namespace osu.Game.Rulesets.Osu.Skinning { switch (Vector2.Distance(position, Vector2.Zero)) { + case >= 0.5f: + return colours.Red; + case >= 0.35f: return colours.Yellow;