1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Merge pull request #16347 from bdach/fix-toolbox-expand-button

Fix settings toolbox toggle button starting in incorrect state
This commit is contained in:
Dean Herbert 2022-01-07 11:17:23 +09:00 committed by GitHub
commit ee0a2ce54c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,9 @@ namespace osu.Game.Overlays
protected override void LoadComplete()
{
base.LoadComplete();
this.Delay(600).FadeTo(inactive_alpha, fade_duration, Easing.OutQuint);
updateExpanded();
}
protected override bool OnHover(HoverEvent e)
@ -177,8 +179,6 @@ namespace osu.Game.Overlays
private void load(OsuColour colours)
{
expandedColour = colours.Yellow;
updateExpanded();
}
private void updateExpanded() => button.FadeColour(expanded ? expandedColour : Color4.White, 200, Easing.InOutQuint);