Adjust explosion and hit target to not include shadow portion in height calculation

This commit is contained in:
Dean Herbert 2023-03-09 20:27:43 +09:00
parent ed3ff62e4f
commit 526eeedec2
2 changed files with 4 additions and 3 deletions

View File

@ -43,9 +43,10 @@ private void load(IScrollingInfo scrollingInfo)
{ {
largeFaint = new Container largeFaint = new Container
{ {
Anchor = Anchor.Centre, Anchor = Anchor.BottomCentre,
Origin = Anchor.Centre, Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Height = ArgonNotePiece.NOTE_ACCENT_RATIO,
Masking = true, Masking = true,
CornerRadius = ArgonNotePiece.CORNER_RADIUS, CornerRadius = ArgonNotePiece.CORNER_RADIUS,
Blending = BlendingParameters.Additive, Blending = BlendingParameters.Additive,

View File

@ -19,7 +19,7 @@ public partial class ArgonHitTarget : CompositeDrawable
private void load(IScrollingInfo scrollingInfo) private void load(IScrollingInfo scrollingInfo)
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
Height = ArgonNotePiece.NOTE_HEIGHT; Height = ArgonNotePiece.NOTE_HEIGHT * ArgonNotePiece.NOTE_ACCENT_RATIO;
Masking = true; Masking = true;
CornerRadius = ArgonNotePiece.CORNER_RADIUS; CornerRadius = ArgonNotePiece.CORNER_RADIUS;