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:
parent
519548c99f
commit
bce9e7a356
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user