Add fade duration

Not really visible in the existing usage, but once we enable the settings tab it will be required. Tested by manually enabling it.
This commit is contained in:
Dean Herbert 2019-01-17 18:13:05 +09:00
parent c1f5c0edc9
commit 491537b8ba

View File

@ -111,17 +111,18 @@ namespace osu.Game.Screens.Multi.Match
header.OnRequestSelectBeatmap = () => Push(new MatchSongSelect { Selected = addPlaylistItem });
header.Tabs.Current.ValueChanged += t =>
{
const float fade_duration = 500;
if (t is SettingsMatchPage)
{
settings.Show();
info.Hide();
bottomRow.Hide();
info.FadeOut(fade_duration, Easing.OutQuint);
bottomRow.FadeOut(fade_duration, Easing.OutQuint);
}
else
{
settings.Hide();
info.Show();
bottomRow.Show();
info.FadeIn(fade_duration, Easing.OutQuint);
bottomRow.FadeIn(fade_duration, Easing.OutQuint);
}
};