Add fade in/out animations to mod settings container

This commit is contained in:
Joehu
2020-12-06 11:35:14 -08:00
parent 56699df0cf
commit 0f9b38da08
2 changed files with 15 additions and 3 deletions

View File

@ -237,7 +237,7 @@ namespace osu.Game.Overlays.Mods
{
Width = 180,
Text = "Customisation",
Action = () => ModSettingsContainer.Alpha = ModSettingsContainer.Alpha == 1 ? 0 : 1,
Action = () => ModSettingsContainer.ToggleVisibility(),
Enabled = { Value = false },
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
@ -430,7 +430,7 @@ namespace osu.Game.Overlays.Mods
DeselectTypes(selectedMod.IncompatibleMods, true);
if (selectedMod.RequiresConfiguration) ModSettingsContainer.Alpha = 1;
if (selectedMod.RequiresConfiguration) ModSettingsContainer.Show();
}
else
{