> [!Important] > **Developer Note** > This code change will **completely move gumps out of the core** ### Summary - Adds `GetGumps()` convenience which exposes methods to Find/Close/Send multiple gumps. This helper is a performance improvement by eliminating the Dictionary<Player, List> lookup for gumps.
21 lines
556 B
C#
21 lines
556 B
C#
using Server.Gumps;
|
|
|
|
namespace Server.Engines.AdvancedSearch;
|
|
|
|
public static class AdvancedSearchCommand
|
|
{
|
|
public static void Configure()
|
|
{
|
|
CommandSystem.Register("AdvancedSearch", AccessLevel.Administrator, OnCommand); // For those old school peeps!
|
|
}
|
|
|
|
[Usage("AdvancedSearch")]
|
|
[Description("Opens the advanced search gump.")]
|
|
[Aliases("AdvSrch", "AS", "XmlFind")]
|
|
private static void OnCommand(CommandEventArgs e)
|
|
{
|
|
var from = e.Mobile;
|
|
|
|
from.SendGump(new AdvancedSearchGump(from), true);
|
|
}
|
|
}
|