2023-05-03 19:00:46 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
|
2023-05-07 20:14:49 +08:00
|
|
|
|
namespace osu.Game.Overlays.Mods
|
2023-05-03 19:00:46 +08:00
|
|
|
|
{
|
2023-05-07 20:14:49 +08:00
|
|
|
|
public partial class ModSearchContainer : SearchContainer
|
2023-05-03 19:00:46 +08:00
|
|
|
|
{
|
2023-05-30 12:38:39 +08:00
|
|
|
|
public new string SearchTerm
|
2023-05-03 19:00:46 +08:00
|
|
|
|
{
|
2023-05-30 12:38:39 +08:00
|
|
|
|
get => base.SearchTerm;
|
2023-05-07 20:14:49 +08:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == SearchTerm)
|
|
|
|
|
return;
|
2023-05-03 19:00:46 +08:00
|
|
|
|
|
2023-06-01 00:36:42 +08:00
|
|
|
|
base.SearchTerm = value;
|
2023-05-30 12:38:39 +08:00
|
|
|
|
|
|
|
|
|
// Manual filtering here is required because ModColumn can be hidden when search term applied,
|
|
|
|
|
// causing the whole SearchContainer to become non-present and never actually perform a subsequent
|
|
|
|
|
// filter.
|
|
|
|
|
Filter();
|
2023-05-07 20:14:49 +08:00
|
|
|
|
}
|
2023-05-03 19:00:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|