Select and unselect BeatmapPanel when selecting BeatmapGroup.

This commit is contained in:
Huo Yaoyuan 2016-11-14 04:22:06 +08:00
parent 33a35ca711
commit 7c8ef2a82b

View File

@ -51,11 +51,15 @@ namespace osu.Game.Beatmaps.Drawable
difficulties.Show();
header.State = PanelSelectedState.Selected;
if (SelectedPanel != null)
SelectedPanel.State = PanelSelectedState.Selected;
break;
case BeatmapGroupState.Collapsed:
FadeTo(0.8f, 250);
header.State = PanelSelectedState.NotSelected;
if (SelectedPanel != null)
SelectedPanel.State = PanelSelectedState.NotSelected;
difficulties.Hide();
break;
}