mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:07:52 +08:00
Speed up fades in transition to avoid ugliness
This commit is contained in:
parent
901674a130
commit
81ba46216f
@ -181,7 +181,7 @@ namespace osu.Game.Overlays
|
||||
Scheduler.AddDelayed(loadSections, TRANSITION_LENGTH / 3);
|
||||
|
||||
Sidebar?.MoveToX(0, TRANSITION_LENGTH, Easing.OutQuint);
|
||||
this.FadeTo(1, TRANSITION_LENGTH, Easing.OutQuint);
|
||||
this.FadeTo(1, TRANSITION_LENGTH / 2, Easing.OutQuint);
|
||||
|
||||
searchTextBox.TakeFocus();
|
||||
searchTextBox.HoldFocus = true;
|
||||
@ -197,7 +197,7 @@ namespace osu.Game.Overlays
|
||||
ContentContainer.MoveToX(-WIDTH + ExpandedPosition, TRANSITION_LENGTH, Easing.OutQuint);
|
||||
|
||||
Sidebar?.MoveToX(-sidebar_width, TRANSITION_LENGTH, Easing.OutQuint);
|
||||
this.FadeTo(0, TRANSITION_LENGTH, Easing.OutQuint);
|
||||
this.FadeTo(0, TRANSITION_LENGTH / 2, Easing.OutQuint);
|
||||
|
||||
searchTextBox.HoldFocus = false;
|
||||
if (searchTextBox.HasFocus)
|
||||
|
Loading…
Reference in New Issue
Block a user