Make BeatmapGroup.Hidden more intelligent

This commit is contained in:
Drew DeVault
2017-01-30 09:47:04 -05:00
parent 0a81fdbd10
commit 42a2285ef3
2 changed files with 12 additions and 5 deletions

View File

@ -33,7 +33,18 @@ namespace osu.Game.Beatmaps.Drawables
public BeatmapSetInfo BeatmapSet;
public bool Hidden;
private bool hidden;
public bool Hidden
{
get { return hidden; }
set
{
hidden = value;
Header.Alpha = hidden ? 0 : 1;
if (hidden)
State = BeatmapGroupState.Collapsed;
}
}
public BeatmapGroupState State
{