1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 22:57:46 +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
Unverified
+2 -2
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);