GumpAutoCheckBox
Pre-sets a checkbox value that will be automatically applied to a gump containing the specified checkbox.
CheckBoxID — the ID of the checkbox element in the gump.
Value — 1 to check, 0 to uncheck.
When a gump is received, Stealth iterates through all currently existing gumps and then any incoming gumps, looking for one that contains the element with the given CheckBoxID. The hook is applied to the first matching gump found.
For precise control over a specific gump, it is recommended to use NumGumpCheckBox instead, which targets a gump by its index.
Устанавливает значение чекбокса, которое будет автоматически применено к гампу, содержащему указанный чекбокс.
CheckBoxID — ID элемента чекбокса в гампе.
Value — 1 — отметить, 0 — снять отметку.
При получении гампа Stealth перебирает все существующие гампы, а затем входящие, пока не найдёт тот, который содержит элемент с заданным CheckBoxID. Хук применяется к первому подходящему гампу.
Для точного управления конкретным гампом рекомендуется использовать NumGumpCheckBox, который обращается к гампу по его индексу.
procedure GumpAutoCheckBox(CheckBoxID: Integer; Value: Integer);
def GumpAutoCheckBox(CheckBoxID: int, Value: int) -> None: ...
begin
GumpAutoCheckBox(1, 1);
GumpAutoCheckBox(5, 0);
WaitGump('100');
end.
GumpAutoCheckBox(1, 1)
GumpAutoCheckBox(5, 0)
WaitGump('100')
GumpAutoRadiobutton, GumpAutoTextEntry, WaitGump, NumGumpCheckBox, GetGumpInfo