mirror of
https://github.com/ppy/osu.git
synced 2025-03-22 22:17:46 +08:00
Clear search on ModSelectOverlay.Hide
This commit is contained in:
parent
152d2678d5
commit
1ac9d900e1
@ -112,8 +112,6 @@ namespace osu.Game.Overlays.Mods
|
||||
private ShearedSearchTextBox searchTextBox = null!;
|
||||
private DifficultyMultiplierDisplay? multiplierDisplay;
|
||||
|
||||
private ModSearchContainer? modSearch;
|
||||
|
||||
protected ShearedButton BackButton { get; private set; } = null!;
|
||||
protected ShearedToggleButton? CustomisationButton { get; private set; }
|
||||
|
||||
@ -215,7 +213,7 @@ namespace osu.Game.Overlays.Mods
|
||||
AutoSizeAxes = Axes.X,
|
||||
Height = ModsEffectDisplay.HEIGHT,
|
||||
Margin = new MarginPadding { Horizontal = 100 },
|
||||
Child = modSearch = new ModSearchContainer()
|
||||
Child = new ModSearchContainer()
|
||||
});
|
||||
|
||||
FooterContent.Child = footerButtonFlow = new FillFlowContainer<ShearedButton>
|
||||
@ -243,6 +241,14 @@ namespace osu.Game.Overlays.Mods
|
||||
globalAvailableMods.BindTo(game.AvailableMods);
|
||||
}
|
||||
|
||||
public override void Hide()
|
||||
{
|
||||
base.Hide();
|
||||
|
||||
//We want to clear search for next user iteraction with mod overlay
|
||||
searchTextBox.Current.Value = string.Empty;
|
||||
}
|
||||
|
||||
private ModSettingChangeTracker? modSettingChangeTracker;
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
Loading…
x
Reference in New Issue
Block a user