mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:23:52 +08:00
Fix FadeInDuration not being passed down to sliders' InitialCircle
This commit is contained in:
parent
f73f43fdad
commit
a2840d2519
@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of milliseconds used to fade in.
|
/// The number of milliseconds used to fade in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double FadeInDuration = TIME_FADEIN;
|
public virtual double FadeInDuration { get; set; } = TIME_FADEIN;
|
||||||
|
|
||||||
public override bool IsPresent => base.IsPresent || State.Value == ArmedState.Idle && Time.Current >= HitObject.StartTime - TIME_PREEMPT;
|
public override bool IsPresent => base.IsPresent || State.Value == ArmedState.Idle && Time.Current >= HitObject.StartTime - TIME_PREEMPT;
|
||||||
|
|
||||||
|
@ -27,7 +27,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
public readonly SliderBody Body;
|
public readonly SliderBody Body;
|
||||||
public readonly SliderBall Ball;
|
public readonly SliderBall Ball;
|
||||||
|
|
||||||
public DrawableSlider(Slider s) : base(s)
|
public DrawableSlider(Slider s)
|
||||||
|
: base(s)
|
||||||
{
|
{
|
||||||
slider = s;
|
slider = s;
|
||||||
|
|
||||||
@ -50,7 +51,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
},
|
},
|
||||||
InitialCircle = new DrawableHitCircle(new HitCircle
|
InitialCircle = new DrawableHitCircle(new HitCircle
|
||||||
{
|
{
|
||||||
//todo: avoid creating this temporary HitCircle.
|
|
||||||
StartTime = s.StartTime,
|
StartTime = s.StartTime,
|
||||||
Position = s.StackedPosition,
|
Position = s.StackedPosition,
|
||||||
ComboIndex = s.ComboIndex,
|
ComboIndex = s.ComboIndex,
|
||||||
@ -105,6 +105,12 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
private int currentRepeat;
|
private int currentRepeat;
|
||||||
public bool Tracking;
|
public bool Tracking;
|
||||||
|
|
||||||
|
public override double FadeInDuration
|
||||||
|
{
|
||||||
|
get { return base.FadeInDuration; }
|
||||||
|
set { InitialCircle.FadeInDuration = base.FadeInDuration = value; }
|
||||||
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Loading…
Reference in New Issue
Block a user