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

NumGumpRadiobutton

Sets a radio button value on the gump at the specified index.

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

RadiobuttonID — the radio button element ID.

Value1 to select, 0 to deselect.

Returns True if the radio button was found and set, False if the gump index is invalid, the radio button was not found, or the character is disconnected.

Unlike GumpAutoRadiobutton, this method targets a specific gump by index.

Устанавливает значение радиокнопки на гампе с указанным индексом.

GumpIndex — индекс гампа (начиная с 0).

RadiobuttonID — ID элемента радиокнопки.

Value1 — выбрать, 0 — снять выбор.

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

В отличие от GumpAutoRadiobutton, этот метод обращается к конкретному гампу по индексу.

Pascal

function NumGumpRadiobutton(GumpIndex: Word; RadiobuttonID: Integer; Value: Integer): Boolean;

Python

def NumGumpRadiobutton(GumpIndex: int, RadiobuttonID: int, Value: int) -> bool: ...

Pascal Example

begin
  NumGumpRadiobutton(0, 10, 1);
  NumGumpButton(0, 200);
end.

Python Example

NumGumpRadiobutton(0, 10, 1)
NumGumpButton(0, 200)

See Also

GumpAutoRadiobutton, NumGumpButton, NumGumpCheckBox, NumGumpTextEntry, GetGumpInfo