Tidy up OsuTabControl and FilterControl.

This commit is contained in:
Dean Herbert
2017-03-16 16:35:44 +09:00
parent 4bedd4d2d7
commit 334e389518
8 changed files with 122 additions and 89 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.Graphics.UserInterface
protected override TabItem<T> CreateTabItem(T value) => new OsuTabItem<T> { Value = value };
public OsuTabControl(float offset = 0) : base(offset)
public OsuTabControl()
{
if (!typeof(T).IsEnum)
throw new InvalidOperationException("OsuTabControl only supports enums as the generic type argument");
@ -45,5 +45,12 @@ namespace osu.Game.Graphics.UserInterface
item.AccentColour = value;
}
}
protected override void Update()
{
base.Update();
DropDown.Header.Height = DrawHeight;
}
}
}