Fade volume back up on pop out

This commit is contained in:
Bartłomiej Dach 2020-10-20 01:06:20 +02:00
parent 1fc22bdbff
commit 05251c646e
1 changed files with 4 additions and 2 deletions

View File

@ -89,12 +89,14 @@ private void load(OsuColour colours, IBindable<WorkingBeatmap> beatmap)
protected override void PopIn()
{
this.FadeIn(500, Easing.InQuint)
.TransformBindableTo(trackVolumeOnEpilepsyWarning, 0.25, 500, Easing.InSine);
.TransformBindableTo(trackVolumeOnEpilepsyWarning, 0.25, 500, Easing.InQuint);
warningContent.FadeIn(500, Easing.InQuint);
}
protected override void PopOut() => this.FadeOut(500, Easing.OutQuint);
protected override void PopOut()
=> this.FadeOut(500, Easing.OutQuint)
.TransformBindableTo(trackVolumeOnEpilepsyWarning, 1, 500, Easing.OutQuint);
protected override void Dispose(bool isDisposing)
{