mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:45:09 +08:00
Simplify classic behaviour flag to only need to be specified on the slider itself
This commit is contained in:
parent
a7705284e7
commit
bf9f20705f
@ -42,10 +42,6 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
{
|
{
|
||||||
case Slider slider:
|
case Slider slider:
|
||||||
slider.ClassicSliderBehaviour = NoSliderHeadAccuracy.Value;
|
slider.ClassicSliderBehaviour = NoSliderHeadAccuracy.Value;
|
||||||
|
|
||||||
foreach (var head in slider.NestedHitObjects.OfType<SliderHeadCircle>())
|
|
||||||
head.ClassicSliderBehaviour = NoSliderHeadAccuracy.Value;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,18 @@ namespace osu.Game.Rulesets.Osu.Objects
|
|||||||
/// Whether this <see cref="Slider"/>'s judgement is fully handled by its nested <see cref="HitObject"/>s.
|
/// Whether this <see cref="Slider"/>'s judgement is fully handled by its nested <see cref="HitObject"/>s.
|
||||||
/// If <c>false</c>, this <see cref="Slider"/> will be judged proportionally to the number of nested <see cref="HitObject"/>s hit.
|
/// If <c>false</c>, this <see cref="Slider"/> will be judged proportionally to the number of nested <see cref="HitObject"/>s hit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ClassicSliderBehaviour = false;
|
public bool ClassicSliderBehaviour
|
||||||
|
{
|
||||||
|
get => classicSliderBehaviour;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
classicSliderBehaviour = value;
|
||||||
|
if (HeadCircle != null)
|
||||||
|
HeadCircle.ClassicSliderBehaviour = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool classicSliderBehaviour;
|
||||||
|
|
||||||
public BindableNumber<double> SliderVelocityMultiplierBindable { get; } = new BindableDouble(1)
|
public BindableNumber<double> SliderVelocityMultiplierBindable { get; } = new BindableDouble(1)
|
||||||
{
|
{
|
||||||
@ -196,6 +207,7 @@ namespace osu.Game.Rulesets.Osu.Objects
|
|||||||
StartTime = e.Time,
|
StartTime = e.Time,
|
||||||
Position = Position,
|
Position = Position,
|
||||||
StackHeight = StackHeight,
|
StackHeight = StackHeight,
|
||||||
|
ClassicSliderBehaviour = ClassicSliderBehaviour,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user