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.
Value — 1 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 элемента радиокнопки.
Value — 1 — выбрать, 0 — снять выбор.
Возвращает True, если радиокнопка найдена и установлена, False — если индекс гампа недействителен, радиокнопка не найдена или персонаж не подключён.
В отличие от GumpAutoRadiobutton, этот метод обращается к конкретному гампу по индексу.
function NumGumpRadiobutton(GumpIndex: Word; RadiobuttonID: Integer; Value: Integer): Boolean;
def NumGumpRadiobutton(GumpIndex: int, RadiobuttonID: int, Value: int) -> bool: ...
begin
NumGumpRadiobutton(0, 10, 1);
NumGumpButton(0, 200);
end.
NumGumpRadiobutton(0, 10, 1)
NumGumpButton(0, 200)
GumpAutoRadiobutton, NumGumpButton, NumGumpCheckBox, NumGumpTextEntry, GetGumpInfo