Fade the options overlay to prevent unnecessary updates to its content.

This commit is contained in:
Thomas Müller
2016-11-06 08:54:36 +01:00
parent a6c0fd29f2
commit 8894e5f73a
2 changed files with 3 additions and 1 deletions

View File

@ -101,11 +101,13 @@ namespace osu.Game.Overlays
protected override void PopIn() protected override void PopIn()
{ {
MoveToX(0, 300, EasingTypes.Out); MoveToX(0, 300, EasingTypes.Out);
FadeTo(1, 300);
} }
protected override void PopOut() protected override void PopOut()
{ {
MoveToX(-width, 300, EasingTypes.Out); MoveToX(-width, 300, EasingTypes.Out);
FadeTo(0, 300);
} }
} }
} }