1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 18:13:09 +08:00

Move filter tab item hierarchy construction to BDL

This commit is contained in:
Bartłomiej Dach 2020-10-28 23:14:52 +01:00
parent a8cefb0d4c
commit 016e920aa9

View File

@ -19,10 +19,15 @@ namespace osu.Game.Overlays.BeatmapListing
[Resolved] [Resolved]
private OverlayColourProvider colourProvider { get; set; } private OverlayColourProvider colourProvider { get; set; }
private readonly OsuSpriteText text; private OsuSpriteText text;
public FilterTabItem(T value) public FilterTabItem(T value)
: base(value) : base(value)
{
}
[BackgroundDependencyLoader]
private void load()
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
Anchor = Anchor.BottomLeft; Anchor = Anchor.BottomLeft;
@ -32,17 +37,12 @@ namespace osu.Game.Overlays.BeatmapListing
text = new OsuSpriteText text = new OsuSpriteText
{ {
Font = OsuFont.GetFont(size: 13, weight: FontWeight.Regular), Font = OsuFont.GetFont(size: 13, weight: FontWeight.Regular),
Text = LabelFor(value) Text = LabelFor(Value)
}, },
new HoverClickSounds() new HoverClickSounds()
}); });
Enabled.Value = true; Enabled.Value = true;
}
[BackgroundDependencyLoader]
private void load()
{
updateState(); updateState();
} }