public BeatmapDetailAreaTabControl() { Height = HEIGHT; Children = new Drawable[] { new Box { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, RelativeSizeAxes = Axes.X, Height = 1, Colour = Color4.White.Opacity(0.2f), }, tabs = new OsuTabControl <BeatmapDetailTab> { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, RelativeSizeAxes = Axes.Both, }, modsCheckbox = new OsuTabControlCheckbox { Anchor = Anchor.BottomRight, Origin = Anchor.BottomRight, Text = @"Mods", }, }; tabs.Current.ValueChanged += item => invokeOnFilter(); modsCheckbox.Current.ValueChanged += item => invokeOnFilter(); tabs.Current.Value = BeatmapDetailTab.Global; }
public BeatmapDetailAreaTabControl() { Height = HEIGHT; Children = new Drawable[] { new Box { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, RelativeSizeAxes = Axes.X, Height = 1, Colour = Color4.White.Opacity(0.2f), }, tabsContainer = new Container { RelativeSizeAxes = Axes.Both, Child = tabs = new OsuTabControl <BeatmapDetailTab> { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, RelativeSizeAxes = Axes.Both, IsSwitchable = true, }, }, modsCheckbox = new OsuTabControlCheckbox { Anchor = Anchor.BottomRight, Origin = Anchor.BottomRight, Text = @"Selected Mods", Alpha = 0, }, }; tabs.Current.ValueChanged += _ => invokeOnFilter(); modsCheckbox.Current.ValueChanged += _ => invokeOnFilter(); }