NumGumpCheckBox
Sets a checkbox value on the gump at the specified index.
GumpIndex — index of the gump (0-based).
CBID — the checkbox element ID.
Value — 1 to check, 0 to uncheck.
Returns True if the checkbox was found and set, False if the gump index is invalid, the checkbox was not found, or the character is disconnected.
Unlike GumpAutoCheckBox, this method targets a specific gump by index, which is more reliable when multiple gumps are open.
Устанавливает значение чекбокса на гампе с указанным индексом.
GumpIndex — индекс гампа (начиная с 0).
CBID — ID элемента чекбокса.
Value — 1 — отметить, 0 — снять отметку.
Возвращает True, если чекбокс найден и установлен, False — если индекс гампа недействителен, чекбокс не найден или персонаж не подключён.
В отличие от GumpAutoCheckBox, этот метод обращается к конкретному гампу по индексу, что надёжнее при наличии нескольких открытых гампов.
function NumGumpCheckBox(GumpIndex: Word; CBID: Integer; Value: Integer): Boolean;
def NumGumpCheckBox(GumpIndex: int, CBID: int, Value: int) -> bool: ...
begin
NumGumpCheckBox(0, 1, 1);
NumGumpCheckBox(0, 5, 0);
NumGumpButton(0, 100);
end.
NumGumpCheckBox(0, 1, 1)
NumGumpCheckBox(0, 5, 0)
NumGumpButton(0, 100)
GumpAutoCheckBox, NumGumpButton, NumGumpRadiobutton, NumGumpTextEntry, GetGumpInfo