mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Fix hit lighting misalignment on argon skin with upscroll
This commit is contained in:
@ -43,8 +43,6 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
{
|
{
|
||||||
largeFaint = new Container
|
largeFaint = new Container
|
||||||
{
|
{
|
||||||
Anchor = Anchor.BottomCentre,
|
|
||||||
Origin = Anchor.BottomCentre,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Height = ArgonNotePiece.NOTE_ACCENT_RATIO,
|
Height = ArgonNotePiece.NOTE_ACCENT_RATIO,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
@ -78,16 +76,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
|||||||
|
|
||||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||||
{
|
{
|
||||||
if (direction.NewValue == ScrollingDirection.Up)
|
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;
|
||||||
Anchor = Anchor.TopCentre;
|
|
||||||
Y = ArgonNotePiece.NOTE_HEIGHT / 2;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Anchor = Anchor.BottomCentre;
|
|
||||||
Y = -ArgonNotePiece.NOTE_HEIGHT / 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Animate(JudgementResult result)
|
public void Animate(JudgementResult result)
|
||||||
|
Reference in New Issue
Block a user