mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Tidy up OsuTabControl and FilterControl.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user