mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 11:23:00 +08:00
Merge pull request #22617 from peppy/fix-wrong-file-property
Move taiko-specific property out of `DrawableHitObject`
This commit is contained in:
commit
257ff1c9d0
@ -23,8 +23,8 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
|
|
||||||
public void ApplyToDrawableHitObject(DrawableHitObject drawable)
|
public void ApplyToDrawableHitObject(DrawableHitObject drawable)
|
||||||
{
|
{
|
||||||
if (drawable is DrawableHit)
|
if (drawable is DrawableTaikoHitObject hit)
|
||||||
drawable.SnapJudgementLocation = true;
|
hit.SnapJudgementLocation = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,15 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
|
|
||||||
private readonly Container nonProxiedContent;
|
private readonly Container nonProxiedContent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether the location of the hit should be snapped to the hit target before animating.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This is how osu-stable worked, but notably is not how TnT works.
|
||||||
|
/// Not snapping results in less visual feedback on hit accuracy.
|
||||||
|
/// </remarks>
|
||||||
|
public bool SnapJudgementLocation { get; set; }
|
||||||
|
|
||||||
protected DrawableTaikoHitObject([CanBeNull] TaikoHitObject hitObject)
|
protected DrawableTaikoHitObject([CanBeNull] TaikoHitObject hitObject)
|
||||||
: base(hitObject)
|
: base(hitObject)
|
||||||
{
|
{
|
||||||
|
@ -662,15 +662,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
public virtual double MaximumJudgementOffset => HitObject.HitWindows?.WindowFor(HitResult.Miss) ?? 0;
|
public virtual double MaximumJudgementOffset => HitObject.HitWindows?.WindowFor(HitResult.Miss) ?? 0;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Whether the location of the hit should be snapped to the hit target before animating.
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// This is how osu-stable worked, but notably is not how TnT works.
|
|
||||||
/// It results in less visual feedback on hit accuracy.
|
|
||||||
/// </remarks>
|
|
||||||
public bool SnapJudgementLocation { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Applies the <see cref="Result"/> of this <see cref="DrawableHitObject"/>, notifying responders such as
|
/// Applies the <see cref="Result"/> of this <see cref="DrawableHitObject"/>, notifying responders such as
|
||||||
/// the <see cref="ScoreProcessor"/> of the <see cref="JudgementResult"/>.
|
/// the <see cref="ScoreProcessor"/> of the <see cref="JudgementResult"/>.
|
||||||
|
Loading…
Reference in New Issue
Block a user