mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Switch AlwaysPlaySample to SamplePlaysOnlyOnHit in DrawableSliderTail for conformity
This commit is contained in:
parent
48e9985782
commit
5ac36a2462
@ -84,7 +84,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
break;
|
||||
|
||||
case DrawableSliderTail tail:
|
||||
tail.AlwaysPlaySample = AlwaysPlayTailSample.Value;
|
||||
tail.SamplePlaysOnlyOnHit = !AlwaysPlayTailSample.Value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user