Fix hit lighting misalignment on argon skin with upscroll

This commit is contained in:
Bartłomiej Dach 2023-03-27 18:15:01 +02:00
parent f31e77dce5
commit c54934cb45
No known key found for this signature in database
1 changed files with 2 additions and 12 deletions

View File

@ -43,8 +43,6 @@ private void load(IScrollingInfo scrollingInfo)
{
largeFaint = new Container
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.Both,
Height = ArgonNotePiece.NOTE_ACCENT_RATIO,
Masking = true,
@ -78,16 +76,8 @@ private void load(IScrollingInfo scrollingInfo)
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
{
if (direction.NewValue == ScrollingDirection.Up)
{
Anchor = Anchor.TopCentre;
Y = ArgonNotePiece.NOTE_HEIGHT / 2;
}
else
{
Anchor = Anchor.BottomCentre;
Y = -ArgonNotePiece.NOTE_HEIGHT / 2;
}
Anchor = largeFaint.Anchor = largeFaint.Origin = direction.NewValue == ScrollingDirection.Up ? Anchor.TopCentre : Anchor.BottomCentre;
Y = direction.NewValue == ScrollingDirection.Up ? ArgonNotePiece.NOTE_HEIGHT / 2 : -ArgonNotePiece.NOTE_HEIGHT / 2;
}
public void Animate(JudgementResult result)