Skip to content

Commit

Permalink
Inline rolling duration
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jul 22, 2022
1 parent 475679c commit db632c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions osu.Game/Screens/Ranking/Expanded/TotalScoreCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,9 @@ private void startTicking()
const double tick_volume_start = 0.5f;
const double tick_volume_end = 1.0f;

double tickDuration = RollingDuration;

this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_start);
this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_end, tickDuration, Easing.OutSine);
sampleTick.VolumeTo(tick_volume_start).Then().VolumeTo(tick_volume_end, tickDuration, Easing.OutSine);
this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_end, RollingDuration, Easing.OutSine);
sampleTick.VolumeTo(tick_volume_start).Then().VolumeTo(tick_volume_end, RollingDuration, Easing.OutSine);
}
}
}

0 comments on commit db632c0

Please sign in to comment.