Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

NumGumpCheckBox

Sets a checkbox value on the gump at the specified index.

GumpIndex — index of the gump (0-based).

CBID — the checkbox element ID.

Value1 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 элемента чекбокса.

Value1 — отметить, 0 — снять отметку.

Возвращает True, если чекбокс найден и установлен, False — если индекс гампа недействителен, чекбокс не найден или персонаж не подключён.

В отличие от GumpAutoCheckBox, этот метод обращается к конкретному гампу по индексу, что надёжнее при наличии нескольких открытых гампов.

Pascal

function NumGumpCheckBox(GumpIndex: Word; CBID: Integer; Value: Integer): Boolean;

Python

def NumGumpCheckBox(GumpIndex: int, CBID: int, Value: int) -> bool: ...

Pascal Example

begin
  NumGumpCheckBox(0, 1, 1);
  NumGumpCheckBox(0, 5, 0);
  NumGumpButton(0, 100);
end.

Python Example

NumGumpCheckBox(0, 1, 1)
NumGumpCheckBox(0, 5, 0)
NumGumpButton(0, 100)

See Also

GumpAutoCheckBox, NumGumpButton, NumGumpRadiobutton, NumGumpTextEntry, GetGumpInfo