2022-11-07 15:31:06 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning.Default
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class DefaultJudgementPiece : Rulesets.Judgements.DefaultJudgementPiece
|
2022-11-07 15:31:06 +08:00
|
|
|
{
|
|
|
|
public DefaultJudgementPiece(HitResult result)
|
|
|
|
: base(result)
|
|
|
|
{
|
2022-11-07 16:12:58 +08:00
|
|
|
RelativePositionAxes = Axes.Both;
|
2022-11-07 15:31:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public override void PlayAnimation()
|
|
|
|
{
|
|
|
|
if (Result != HitResult.Miss)
|
|
|
|
{
|
|
|
|
this
|
2022-11-07 16:12:58 +08:00
|
|
|
.MoveToY(-0.6f)
|
|
|
|
.MoveToY(-1.5f, 500);
|
2022-11-07 15:31:06 +08:00
|
|
|
|
|
|
|
JudgementText
|
|
|
|
.ScaleTo(0.9f)
|
|
|
|
.ScaleTo(1, 500, Easing.OutElastic);
|
|
|
|
|
2022-11-07 16:12:58 +08:00
|
|
|
this.FadeOutFromOne(800, Easing.OutQuint);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
base.PlayAnimation();
|
2022-11-07 15:31:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|