mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
make upscroll make sense
This commit is contained in:
@ -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,
|
||||||
Colour = Colour4.Black,
|
Children = new Drawable[]
|
||||||
Alpha = 0.3f,
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = Colour4.Black,
|
||||||
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user