mirror of
https://github.com/ppy/osu
synced 2025-03-06 03:19:47 +00:00
Make "AlwaysPlayTailSample" a mod setting rather than a hardcoded constant.
This commit is contained in:
parent
5063cd957f
commit
48e9985782
@ -44,6 +44,9 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
[SettingSource("Use fixed slider follow circle hit area", "Makes the slider follow circle track its final size at all times.")]
|
||||
public Bindable<bool> FixedFollowCircleHitArea { get; } = new BindableBool(true);
|
||||
|
||||
[SettingSource("Always play a slider's tail sample", "Always plays a slider's tail sample regardless of whether it was hit or not.")]
|
||||
public Bindable<bool> AlwaysPlayTailSample { get; } = new BindableBool(true);
|
||||
|
||||
public void ApplyToHitObject(HitObject hitObject)
|
||||
{
|
||||
switch (hitObject)
|
||||
@ -81,7 +84,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
break;
|
||||
|
||||
case DrawableSliderTail tail:
|
||||
tail.AlwaysPlaySample = true;
|
||||
tail.AlwaysPlaySample = AlwaysPlayTailSample.Value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user