1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Make GradientLineTabControl abstract

This commit is contained in:
Dean Herbert 2019-09-13 13:59:06 +09:00
parent 7ee01ee323
commit b917f29cfe

View File

@ -12,10 +12,8 @@ using osu.Framework.Extensions.Color4Extensions;
namespace osu.Game.Graphics.UserInterface namespace osu.Game.Graphics.UserInterface
{ {
public class GradientLineTabControl<TModel> : PageTabControl<TModel> public abstract class GradientLineTabControl<TModel> : PageTabControl<TModel>
{ {
protected override Dropdown<TModel> CreateDropdown() => null;
protected Color4 LineColour protected Color4 LineColour
{ {
get => line.Colour; get => line.Colour;
@ -24,7 +22,7 @@ namespace osu.Game.Graphics.UserInterface
private readonly GradientLine line; private readonly GradientLine line;
public GradientLineTabControl() protected GradientLineTabControl()
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
@ -35,6 +33,8 @@ namespace osu.Game.Graphics.UserInterface
}); });
} }
protected override Dropdown<TModel> CreateDropdown() => null;
protected override TabFillFlowContainer CreateTabFlow() => new TabFillFlowContainer protected override TabFillFlowContainer CreateTabFlow() => new TabFillFlowContainer
{ {
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,