mirror of https://github.com/ppy/osu
Fade volume back up on pop out
This commit is contained in:
parent
1fc22bdbff
commit
05251c646e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue