1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 08:07:40 +08:00
osu-lazer/osu.Game/Overlays/Mods/ModSearchContainer.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1009 B
C#
Raw Normal View History

// 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;
namespace osu.Game.Overlays.Mods
{
public partial class ModSearchContainer : SearchContainer
{
/// <summary>
2023-05-28 18:21:41 +08:00
/// Same as <see cref="SearchContainer{T}.SearchTerm"/> except the filtering is guarantied to be performed
/// </summary>
2023-05-28 15:04:26 +08:00
/// <remarks>
2023-05-28 18:21:41 +08:00
/// This is required because <see cref="ModColumn"/> can be hidden when search term applied
/// therefore <see cref="SearchContainer{T}.Update"/> cannot be reached and filter cannot automatically re-validate itself.
2023-05-28 15:04:26 +08:00
/// </remarks>
public string ForcedSearchTerm
{
get => SearchTerm;
set
{
if (value == SearchTerm)
return;
SearchTerm = value;
Update();
}
}
}
}