Adjust legacy reverse arrow implementation to match stable more closely

This commit is contained in:
Dean Herbert 2023-10-02 22:26:57 +09:00
parent f0070eecf1
commit 94e49a34fd
1 changed files with 10 additions and 12 deletions

View File

@ -73,28 +73,26 @@ private void onHitObjectApplied(DrawableHitObject drawableObject)
private void updateStateTransforms(DrawableHitObject hitObject, ArmedState state)
{
const double move_out_duration = 35;
const double move_in_duration = 250;
const double total = 300;
const double duration = 300;
const float rotation = 5.625f;
switch (state)
{
case ArmedState.Idle:
if (shouldRotate)
{
InternalChild.ScaleTo(1.3f, move_out_duration)
.RotateTo(5.625f)
InternalChild.ScaleTo(1.3f)
.RotateTo(rotation)
.Then()
.ScaleTo(1f, move_in_duration)
.RotateTo(-5.625f, move_in_duration)
.Loop(total - (move_in_duration + move_out_duration));
.ScaleTo(1f, duration)
.RotateTo(-rotation, duration)
.Loop();
}
else
{
InternalChild.ScaleTo(1.3f)
.Then()
.ScaleTo(1f, move_in_duration)
.Loop(total - (move_in_duration + move_out_duration));
InternalChild.ScaleTo(1.3f).Then()
.ScaleTo(1f, duration, Easing.Out)
.Loop();
}
break;