Add animation when collapsing or expanding the profile details section

This commit is contained in:
Dean Herbert
2019-05-04 11:01:12 +09:00
parent f05471aa18
commit 0fa0271878
3 changed files with 35 additions and 6 deletions

View File

@ -117,7 +117,7 @@ namespace osu.Game.Overlays.Profile
infoTabControl.AddItem("Info");
infoTabControl.AddItem("Modding");
centreHeaderContainer.DetailsVisible.BindValueChanged(visible => detailHeaderContainer.Alpha = visible.NewValue ? 1 : 0, true);
centreHeaderContainer.DetailsVisible.BindValueChanged(visible => detailHeaderContainer.Expanded = visible.NewValue, true);
User.ValueChanged += e => updateDisplay(e.NewValue);
}