rename field

This commit is contained in:
Aergwyn 2017-12-29 17:52:28 +01:00
parent 5c3b67bcef
commit 07040f9fd1
5 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@ protected void ApplyHiddenValues(DrawableHitObject drawable)
if (!(drawable is DrawableOsuHitObject d))
return;
d.FadeIn = preEmpt * fade_in_duration_multiplier;
d.FadeInDuration = preEmpt * fade_in_duration_multiplier;
}
protected void ApplyHiddenState(DrawableHitObject drawable, ArmedState state)
@ -57,7 +57,7 @@ protected void ApplyHiddenState(DrawableHitObject drawable, ArmedState state)
if (!(drawable is DrawableOsuHitObject d))
return;
var fadeOutStartTime = d.HitObject.StartTime - preEmpt + d.FadeIn;
var fadeOutStartTime = d.HitObject.StartTime - preEmpt + d.FadeInDuration;
var fadeOutDuration = preEmpt * fade_out_duration_multiplier;
// new duration from completed fade in to end (before fading out)

View File

@ -87,7 +87,7 @@ protected override void UpdatePreemptState()
{
base.UpdatePreemptState();
ApproachCircle.FadeIn(Math.Min(FadeIn * 2, TIME_PREEMPT));
ApproachCircle.FadeIn(Math.Min(FadeInDuration * 2, TIME_PREEMPT));
ApproachCircle.ScaleTo(1.1f, TIME_PREEMPT);
}

View File

@ -16,7 +16,7 @@ public class DrawableOsuHitObject : DrawableHitObject<OsuHitObject>
/// <summary>
/// The number of milliseconds used to fade in.
/// </summary>
public double FadeIn = TIME_FADEIN;
public double FadeInDuration = TIME_FADEIN;
public override bool IsPresent => base.IsPresent || State.Value == ArmedState.Idle && Time.Current >= HitObject.StartTime - TIME_PREEMPT;
@ -43,7 +43,7 @@ protected sealed override void UpdateState(ArmedState state)
}
}
protected virtual void UpdatePreemptState() => this.FadeIn(FadeIn);
protected virtual void UpdatePreemptState() => this.FadeIn(FadeInDuration);
protected virtual void UpdateCurrentState(ArmedState state)
{

View File

@ -70,7 +70,7 @@ public DrawableSlider(Slider s) : base(s)
foreach (var tick in s.NestedHitObjects.OfType<SliderTick>())
{
var repeatStartTime = s.StartTime + tick.RepeatIndex * repeatDuration;
var fadeInTime = repeatStartTime + (tick.StartTime - repeatStartTime) / 2 - (tick.RepeatIndex == 0 ? FadeIn : FadeIn / 2);
var fadeInTime = repeatStartTime + (tick.StartTime - repeatStartTime) / 2 - (tick.RepeatIndex == 0 ? FadeInDuration : FadeInDuration / 2);
var fadeOutTime = repeatStartTime + repeatDuration;
var drawableTick = new DrawableSliderTick(tick)
@ -87,7 +87,7 @@ public DrawableSlider(Slider s) : base(s)
foreach (var repeatPoint in s.NestedHitObjects.OfType<RepeatPoint>())
{
var repeatStartTime = s.StartTime + repeatPoint.RepeatIndex * repeatDuration;
var fadeInTime = repeatStartTime + (repeatPoint.StartTime - repeatStartTime) / 2 - (repeatPoint.RepeatIndex == 0 ? FadeIn : FadeIn / 2);
var fadeInTime = repeatStartTime + (repeatPoint.StartTime - repeatStartTime) / 2 - (repeatPoint.RepeatIndex == 0 ? FadeInDuration : FadeInDuration / 2);
var fadeOutTime = repeatStartTime + repeatDuration;
var drawableRepeatPoint = new DrawableRepeatPoint(repeatPoint, this)

View File

@ -166,7 +166,7 @@ protected override void Update()
{
Disc.Tracking = OsuActionInputManager.PressedActions.Any(x => x == OsuAction.LeftButton || x == OsuAction.RightButton);
if (!spmCounter.IsPresent && Disc.Tracking)
spmCounter.FadeIn(FadeIn);
spmCounter.FadeIn(FadeInDuration);
base.Update();
}