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

NumGumpTextEntry

Sets a text entry value on the gump at the specified index.

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

TextEntryID — the text entry element ID.

Value — the text string to fill in.

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

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

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

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

TextEntryID — ID элемента текстового поля.

Value — текстовая строка для заполнения.

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

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

Pascal

function NumGumpTextEntry(GumpIndex: Word; TextEntryID: Integer; Value: String): Boolean;

Python

def NumGumpTextEntry(GumpIndex: int, TextEntryID: int, Value: str) -> bool: ...

Pascal Example

begin
  NumGumpTextEntry(0, 3, '500');
  NumGumpButton(0, 50);
end.

Python Example

NumGumpTextEntry(0, 3, '500')
NumGumpButton(0, 50)

See Also

GumpAutoTextEntry, NumGumpButton, NumGumpCheckBox, NumGumpRadiobutton, GetGumpInfo