Switch AlwaysPlaySample to SamplePlaysOnlyOnHit in DrawableSliderTail for conformity

This commit is contained in:
Amber
2021-04-02 03:56:23 -05:00
parent 48e9985782
commit 5ac36a2462
3 changed files with 3 additions and 4 deletions

View File

@ -84,7 +84,7 @@ namespace osu.Game.Rulesets.Osu.Mods
break; break;
case DrawableSliderTail tail: case DrawableSliderTail tail:
tail.AlwaysPlaySample = AlwaysPlayTailSample.Value; tail.SamplePlaysOnlyOnHit = !AlwaysPlayTailSample.Value;
break; break;
} }
} }

View File

@ -280,7 +280,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{ {
// rather than doing it this way, we should probably attach the sample to the tail circle. // rather than doing it this way, we should probably attach the sample to the tail circle.
// this can only be done after we stop using LegacyLastTick. // this can only be done after we stop using LegacyLastTick.
if (TailCircle.IsHit || TailCircle.AlwaysPlaySample) if (!TailCircle.SamplePlaysOnlyOnHit || TailCircle.IsHit)
base.PlaySamples(); base.PlaySamples();
} }

View File

@ -29,7 +29,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
/// <summary> /// <summary>
/// Whether the hit sample should always be played, regardless of whether the tail was actually hit. /// Whether the hit sample should always be played, regardless of whether the tail was actually hit.
/// </summary> /// </summary>
public bool AlwaysPlaySample { get; set; } public bool SamplePlaysOnlyOnHit { get; set; } = true;
public bool Tracking { get; set; } public bool Tracking { get; set; }
@ -49,7 +49,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
AlwaysPlaySample = false;
Origin = Anchor.Centre; Origin = Anchor.Centre;
Size = new Vector2(OsuHitObject.OBJECT_RADIUS * 2); Size = new Vector2(OsuHitObject.OBJECT_RADIUS * 2);