2023-05-03 14:00:46 +03: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 15:14:49 +03:00
|
|
|
|
namespace osu.Game.Overlays.Mods
|
2023-05-03 14:00:46 +03:00
|
|
|
|
{
|
2023-05-07 15:14:49 +03:00
|
|
|
|
public partial class ModSearchContainer : SearchContainer
|
2023-05-03 14:00:46 +03:00
|
|
|
|
{
|
2023-05-30 13:38:39 +09:00
|
|
|
|
public new string SearchTerm
|
2023-05-03 14:00:46 +03:00
|
|
|
|
{
|
2023-05-30 13:38:39 +09:00
|
|
|
|
get => base.SearchTerm;
|
2023-05-07 15:14:49 +03:00
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == SearchTerm)
|
|
|
|
|
return;
|
2023-05-03 14:00:46 +03:00
|
|
|
|
|
2023-05-31 19:36:42 +03:00
|
|
|
|
base.SearchTerm = value;
|
2023-05-30 13:38:39 +09: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 15:14:49 +03:00
|
|
|
|
}
|
2023-05-03 14:00:46 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|