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-07 20:14:49 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A string that should match the <see cref="IFilterable"/> children
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ForcedSearchTerm
|
2023-05-03 19:00:46 +08:00
|
|
|
|
{
|
2023-05-07 20:14:49 +08:00
|
|
|
|
get => SearchTerm;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (value == SearchTerm)
|
|
|
|
|
return;
|
2023-05-03 19:00:46 +08:00
|
|
|
|
|
2023-05-07 20:14:49 +08:00
|
|
|
|
SearchTerm = value;
|
|
|
|
|
Update();
|
|
|
|
|
}
|
2023-05-03 19:00:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|