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
1 changed files with 1 additions and 5 deletions

View File

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