mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Tidy up and tweak transitions of DrawableJudgementInfo.
This commit is contained in:
@ -44,16 +44,14 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
if (Judgement.Result == HitResult.Hit)
|
||||
switch (Judgement.Result)
|
||||
{
|
||||
MoveToY(-100, 500);
|
||||
Delay(250);
|
||||
FadeOut(250);
|
||||
case HitResult.Hit:
|
||||
MoveToY(-100, 500);
|
||||
break;
|
||||
}
|
||||
|
||||
Expire();
|
||||
base.LoadComplete();
|
||||
}
|
||||
}
|
||||
}
|
@ -179,19 +179,17 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
|
||||
public override void OnJudgement(DrawableHitObject<TaikoHitObject, TaikoJudgementInfo> judgedObject)
|
||||
{
|
||||
if (judgedObject.Judgement.Result == HitResult.Hit)
|
||||
{
|
||||
hitExplosionContainer.Add(new HitExplosion(judgedObject.Judgement));
|
||||
}
|
||||
bool wasHit = judgedObject.Judgement.Result == HitResult.Hit;
|
||||
|
||||
float judgementOffset = judgedObject.Judgement.Result == HitResult.Hit ? judgedObject.Position.X : 0;
|
||||
if (wasHit)
|
||||
hitExplosionContainer.Add(new HitExplosion(judgedObject.Judgement));
|
||||
|
||||
judgementContainer.Add(new DrawableTaikoJudgementInfo(judgedObject.Judgement)
|
||||
{
|
||||
Anchor = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.TopLeft : Anchor.BottomLeft,
|
||||
Origin = judgedObject.Judgement.Result == HitResult.Hit ? Anchor.BottomCentre : Anchor.TopCentre,
|
||||
Anchor = wasHit ? Anchor.TopLeft : Anchor.CentreLeft,
|
||||
Origin = wasHit ? Anchor.BottomCentre : Anchor.Centre,
|
||||
RelativePositionAxes = Axes.X,
|
||||
X = judgementOffset,
|
||||
X = wasHit ? judgedObject.Position.X : 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user