1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Move filter control property setters to load()

This commit is contained in:
Joseph Madamba 2023-03-21 21:31:35 -07:00
parent 74a15d7424
commit d9571b6fc9
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -44,12 +44,7 @@ namespace osu.Game.Overlays
private Container panelTarget;
private FillFlowContainer<BeatmapCard> foundContent;
private BeatmapListingFilterControl filterControl => Header.FilterControl.With(f =>
{
f.TypingStarted = onTypingStarted;
f.SearchStarted = onSearchStarted;
f.SearchFinished = onSearchFinished;
});
private BeatmapListingFilterControl filterControl => Header.FilterControl;
public BeatmapListingOverlay()
: base(OverlayColourScheme.Blue)
@ -88,6 +83,10 @@ namespace osu.Game.Overlays
},
}
};
filterControl.TypingStarted = onTypingStarted;
filterControl.SearchStarted = onSearchStarted;
filterControl.SearchFinished = onSearchFinished;
}
protected override void LoadComplete()