mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Update search textbox implementation to use BasicSearchTextBox
instead
This commit is contained in:
parent
d7919f462c
commit
81be69e72e
@ -6,7 +6,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// A <see cref="SearchTextBox"/> which does not handle left/right arrow keys for seeking.
|
||||
/// </summary>
|
||||
public class SeekLimitedSearchTextBox : SearchTextBox
|
||||
public class SeekLimitedSearchTextBox : BasicSearchTextBox
|
||||
{
|
||||
public override bool HandleLeftRightArrows => false;
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
|
||||
public void TakeFocus() => textBox.TakeFocus();
|
||||
|
||||
private class BeatmapSearchTextBox : SearchTextBox
|
||||
private class BeatmapSearchTextBox : BasicSearchTextBox
|
||||
{
|
||||
/// <summary>
|
||||
/// Any time the text box receives key events (even while masked).
|
||||
|
@ -181,7 +181,7 @@ namespace osu.Game.Overlays.Chat.Selection
|
||||
base.PopOut();
|
||||
}
|
||||
|
||||
private class HeaderSearchTextBox : SearchTextBox
|
||||
private class HeaderSearchTextBox : BasicSearchTextBox
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
|
@ -56,7 +56,7 @@ namespace osu.Game.Overlays.Music
|
||||
Collection = collectionDropdown.Current.Value?.Collection
|
||||
};
|
||||
|
||||
public class FilterTextBox : SearchTextBox
|
||||
public class FilterTextBox : BasicSearchTextBox
|
||||
{
|
||||
protected override bool AllowCommit => true;
|
||||
|
||||
|
@ -129,7 +129,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = Header.HEIGHT,
|
||||
Child = searchTextBox = new SearchTextBox
|
||||
Child = searchTextBox = new BasicSearchTextBox
|
||||
{
|
||||
Anchor = Anchor.CentreRight,
|
||||
Origin = Anchor.CentreRight,
|
||||
|
Loading…
Reference in New Issue
Block a user