Sidebar now pushes full settings out further

This commit is contained in:
Dean Herbert
2017-07-13 16:26:40 +09:00
parent 61c45b0b44
commit 8460e29bcb
2 changed files with 10 additions and 3 deletions

View File

@ -50,10 +50,10 @@ namespace osu.Game.Overlays.Settings
protected override bool OnHover(InputState state)
{
expandEvent?.Cancel();
expandEvent = Scheduler.AddDelayed(() =>
{
expandEvent = null;
ResizeTo(new Vector2(EXPANDED_WIDTH, Height), 150, EasingTypes.OutQuad);
ResizeTo(new Vector2(EXPANDED_WIDTH, Height), 500, EasingTypes.OutQuint);
}, 750);
return true;
}
@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Settings
protected override void OnHoverLost(InputState state)
{
expandEvent?.Cancel();
ResizeTo(new Vector2(DEFAULT_WIDTH, Height), 150, EasingTypes.OutQuad);
ResizeTo(new Vector2(DEFAULT_WIDTH, Height), 500, EasingTypes.OutQuint);
base.OnHoverLost(state);
}