2017-09-11 16:53:27 +08:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
2017-09-11 18:14:37 +08:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2017-09-11 16:53:27 +08:00
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
|
|
|
using osu.Game.Rulesets.Mania.Judgements;
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.UI
|
|
|
|
{
|
|
|
|
internal class DrawableManiaJudgement : DrawableJudgement<ManiaJudgement>
|
|
|
|
{
|
|
|
|
public DrawableManiaJudgement(ManiaJudgement judgement)
|
|
|
|
: base(judgement)
|
|
|
|
{
|
|
|
|
JudgementText.TextSize = 25;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void LoadComplete()
|
|
|
|
{
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
|
|
this.FadeInFromZero(50, Easing.OutQuint);
|
|
|
|
|
|
|
|
switch (Judgement.Result)
|
|
|
|
{
|
|
|
|
case HitResult.Hit:
|
|
|
|
this.ScaleTo(0.8f);
|
|
|
|
this.ScaleTo(1, 250, Easing.OutElastic);
|
|
|
|
|
|
|
|
this.Delay(50).FadeOut(200).ScaleTo(0.75f, 250);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
Expire();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|