1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-23 18:13:20 +08:00

Fix incorrect selection hold note blueprint display when upscroll active

This commit is contained in:
Bartłomiej Dach 2024-11-15 10:27:07 +01:00
parent 4c147327df
commit 0c4c9bd237
No known key found for this signature in database

View File

@ -30,6 +30,7 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
[Resolved] [Resolved]
private IPositionSnapProvider? positionSnapProvider { get; set; } private IPositionSnapProvider? positionSnapProvider { get; set; }
private EditBodyPiece body = null!;
private EditHoldNoteEndPiece head = null!; private EditHoldNoteEndPiece head = null!;
private EditHoldNoteEndPiece tail = null!; private EditHoldNoteEndPiece tail = null!;
@ -45,7 +46,7 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
{ {
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
new EditBodyPiece body = new EditBodyPiece
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,
@ -113,7 +114,7 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
foreach (var child in InternalChildren) foreach (var child in InternalChildren)
child.Anchor = Origin; child.Anchor = Origin;
head.Scale = tail.Scale = new Vector2(1, direction.NewValue == ScrollingDirection.Down ? 1 : -1); head.Scale = tail.Scale = body.Scale = new Vector2(1, direction.NewValue == ScrollingDirection.Down ? 1 : -1);
} }
public override Quad SelectionQuad => ScreenSpaceDrawQuad; public override Quad SelectionQuad => ScreenSpaceDrawQuad;