using FadeTo instead of show/hide

headerLabel.FadeTo() is still remain because effect can be visible when expand== true
This commit is contained in:
andy840119 2019-06-16 13:27:01 +09:00
parent 1a73178260
commit 84b4e877f8

View File

@ -52,12 +52,8 @@ namespace osu.Game.Overlays.Mods
buttons = modContainers.OfType<ModButton>().ToArray(); buttons = modContainers.OfType<ModButton>().ToArray();
var expand = value.Any(); var expand = value.Any();
if (expand)
Show();
else
Hide();
headerLabel.FadeTo(expand ? 1 : 0, 200); headerLabel.FadeTo(expand ? 1 : 0, 200);
this.FadeTo(expand ? 1 : 0);
} }
} }