internal void OnNewResult(DrawableHitObject judgedObject, JudgementResult result) { if (!result.IsHit || !judgedObject.DisplayResult || !DisplayJudgements.Value) { return; } var explosion = new SkinnableDrawable(new ManiaSkinComponent(ManiaSkinComponents.HitExplosion, Index), _ => new DefaultHitExplosion(judgedObject.AccentColour.Value, judgedObject is DrawableHoldNoteTick)) { RelativeSizeAxes = Axes.Both }; hitObjectArea.Explosions.Add(explosion); explosion.Delay(200).Expire(true); }
internal void OnNewResult(DrawableHitObject judgedObject, JudgementResult result) { // Add judgement if (!judgedObject.DisplayResult || !DisplayJudgements.Value) { return; } if (!(judgedObject is DrawableNote note)) { return; } judgements.Clear(); judgements.Add(new DrawableNoteJudgement(result, judgedObject) { Anchor = Anchor.Centre, Origin = Anchor.Centre, Y = calculator.YPositionAt(note.HitObject.Tone + 2) }); // Add hit explosion if (!result.IsHit) { return; } var explosion = new SkinnableDrawable(new KaraokeSkinComponent(KaraokeSkinComponents.HitExplosion), _ => new DefaultHitExplosion(judgedObject.AccentColour.Value, judgedObject is DrawableNote)) { Y = calculator.YPositionAt(note.HitObject.Tone) }; // todo : shpuld be added into hitObjectArea.Explosions // see how mania ruleset do hitObjectArea.Add(explosion); explosion.Delay(200).Expire(true); }