make upscroll make sense

This commit is contained in:
itsMapleLeaf
2023-01-31 19:52:58 -06:00
parent ff26effa29
commit fe175e72a9
2 changed files with 18 additions and 7 deletions

View File

@ -30,6 +30,9 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
{ {
container = new Container container = new Container
{ {
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Height = 0.5f, Height = 0.5f,
@ -44,14 +47,23 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
Colour = Colour4.Black, Colour = Colour4.Black,
Alpha = 0.4f, Alpha = 0.4f,
}, },
new Circle new Container
{ {
CornerRadius = ArgonNotePiece.CORNER_RADIUS,
Masking = true,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Height = 1 - ArgonNotePiece.NOTE_ACCENT_RATIO, Height = 1 - ArgonNotePiece.NOTE_ACCENT_RATIO,
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Colour4.Black, Colour = Colour4.Black,
Alpha = 0.3f, Alpha = 0.3f,
}
}
}, },
}, },
} }
@ -67,10 +79,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction) private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
{ {
container.Anchor = container.Origin = Scale = new osuTK.Vector2(1, direction.NewValue == ScrollingDirection.Up ? -1 : 1);
direction.NewValue == ScrollingDirection.Down
? Anchor.BottomCentre
: Anchor.TopCentre;
} }
} }
} }

View File

@ -95,6 +95,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
colouredBox.Anchor = colouredBox.Origin = direction.NewValue == ScrollingDirection.Up colouredBox.Anchor = colouredBox.Origin = direction.NewValue == ScrollingDirection.Up
? Anchor.TopCentre ? Anchor.TopCentre
: Anchor.BottomCentre; : Anchor.BottomCentre;
Scale = new Vector2(1, direction.NewValue == ScrollingDirection.Up ? -1 : 1);
} }
private void onAccentChanged(ValueChangedEvent<Color4> accent) private void onAccentChanged(ValueChangedEvent<Color4> accent)