Refactor SectionsContainer to generic.

This commit is contained in:
Huo Yaoyuan
2017-06-09 16:24:19 +08:00
parent c60ef2449f
commit 798d8711b8
3 changed files with 33 additions and 41 deletions

View File

@ -83,7 +83,7 @@ namespace osu.Game.Overlays
},
Exit = Hide,
},
Sections = sections,
Children = sections,
Footer = new SettingsFooter()
},
sidebar = new Sidebar
@ -148,12 +148,12 @@ namespace osu.Game.Overlays
base.OnFocus(state);
}
private class SettingsSectionsContainer : SectionsContainer
private class SettingsSectionsContainer : SectionsContainer<SettingsSection>
{
public SearchContainer SearchContainer;
public SearchContainer<SettingsSection> SearchContainer;
protected override Container<Drawable> CreateScrollContentContainer()
=> SearchContainer = new SearchContainer
protected override FlowContainer<SettingsSection> CreateScrollContentContainer()
=> SearchContainer = new SearchContainer<SettingsSection>
{
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,