mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 07:04:15 +08:00
Sidebar now pushes full settings out further
This commit is contained in:
parent
61c45b0b44
commit
8460e29bcb
@ -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);
|
||||
}
|
||||
|
||||
|
@ -148,6 +148,13 @@ namespace osu.Game.Overlays
|
||||
base.OnFocus(state);
|
||||
}
|
||||
|
||||
protected override void UpdateAfterChildren()
|
||||
{
|
||||
base.UpdateAfterChildren();
|
||||
|
||||
sectionsContainer.Margin = new MarginPadding { Left = sidebar.DrawWidth };
|
||||
}
|
||||
|
||||
private class SettingsSectionsContainer : SectionsContainer
|
||||
{
|
||||
public SearchContainer SearchContainer;
|
||||
|
Loading…
Reference in New Issue
Block a user