1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

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;
case DrawableSliderTail tail:
tail.AlwaysPlaySample = AlwaysPlayTailSample.Value;
tail.SamplePlaysOnlyOnHit = !AlwaysPlayTailSample.Value;
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.
// this can only be done after we stop using LegacyLastTick.
if (TailCircle.IsHit || TailCircle.AlwaysPlaySample)
if (!TailCircle.SamplePlaysOnlyOnHit || TailCircle.IsHit)
base.PlaySamples();
}

View File

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