apply different offset based on whether the marker is newStyle or not

This commit is contained in:
Morilli 2020-11-09 08:20:19 +01:00
parent 490fbd1dd8
commit 7b0e387dfc
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ protected override void Update()
Math.Clamp(Clock.ElapsedFrameTime, 0, 200), Math.Clamp(Clock.ElapsedFrameTime, 0, 200),
fill.Width, (float)Current.Value * maxFillWidth, 0, 200, Easing.OutQuint); fill.Width, (float)Current.Value * maxFillWidth, 0, 200, Easing.OutQuint);
marker.Position = fill.Position + new Vector2(fill.DrawWidth, 0); marker.Position = fill.Position + new Vector2(fill.DrawWidth, isNewStyle ? fill.DrawHeight / 2 : 0);
} }
public void Flash(JudgementResult result) => marker.Flash(result); public void Flash(JudgementResult result) => marker.Flash(result);