1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 17:40:08 +08:00

Adjust weighted average to 90/10 to match bar error meter

This commit is contained in:
Bartłomiej Dach
2025-08-18 14:43:24 +02:00
Unverified
parent 807ba111fd
commit a337c8bb99
+2 -2
View File
@@ -342,7 +342,7 @@ namespace osu.Game.Rulesets.Osu.HUD
hitPositionMarkerContainer.Add(drawableHit);
});
var newAveragePosition = (hitPosition + (averagePosition ?? hitPosition)) / 2;
var newAveragePosition = 0.1f * hitPosition + 0.9f * (averagePosition ?? hitPosition);
averagePositionMarker.MoveTo(newAveragePosition, 800, Easing.OutQuint);
averagePosition = newAveragePosition;
lastObjectPosition = ((OsuHitObject)circleJudgement.HitObject).StackedPosition;
@@ -434,7 +434,7 @@ namespace osu.Game.Rulesets.Osu.HUD
MarkerSize.BindTo(aimErrorMeter.HitMarkerSize);
MarkerSize.BindValueChanged(size => Size = new Vector2(size.NewValue), true);
Style.BindTo(aimErrorMeter.HitMarkerStyle);
Style.BindValueChanged(style => content.Rotation = style.NewValue == AimErrorMeter.MarkerStyle.X ? 0 : 45, true);
Style.BindValueChanged(style => content.Rotation = style.NewValue == MarkerStyle.X ? 0 : 45, true);
}
protected override void PrepareForUse()