1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +08:00

Remove too much nesting for OverlaySortTabControl class

This commit is contained in:
Andrei Zavatski 2020-02-17 22:32:58 +03:00
parent 519548c99f
commit bce9e7a356
2 changed files with 131 additions and 131 deletions

View File

@ -33,6 +33,7 @@ namespace osu.Game.Overlays.BeatmapListing
{
SortDirection = { BindTarget = SortDirection }
};
}
private class BeatmapSortTabItem : SortTabItem
{
@ -48,6 +49,7 @@ namespace osu.Game.Overlays.BeatmapListing
Active = { BindTarget = Active },
SortDirection = { BindTarget = SortDirection }
};
}
private class BeatmapTabButton : TabButton
{
@ -102,8 +104,6 @@ namespace osu.Game.Overlays.BeatmapListing
}
}
}
}
}
public enum BeatmapSortCriteria
{

View File

@ -75,6 +75,7 @@ namespace osu.Game.Overlays
{
AutoSizeAxes = Axes.Both;
}
}
protected class SortTabItem : TabItem<T>
{
@ -98,6 +99,7 @@ namespace osu.Game.Overlays
protected override void OnDeactivated()
{
}
}
protected class TabButton : HeaderButton
{
@ -163,6 +165,4 @@ namespace osu.Game.Overlays
}
}
}
}
}
}