GetGumpInfo
Returns the full structured gump information for the gump at index GumpIndex as a TGumpInfo record.
This record contains all gump elements: buttons, text entries, checkboxes, radio buttons, pictures, HTML areas, and more.
Returns an empty record if the index is out of range or the character is disconnected.
Возвращает полную структурированную информацию о гампе с индексом GumpIndex в виде записи TGumpInfo.
Запись содержит все элементы гампа: кнопки, текстовые поля, чекбоксы, радиокнопки, изображения, HTML-области и многое другое.
Возвращает пустую запись, если индекс вне диапазона или персонаж не подключён.
function GetGumpInfo(GumpIndex: Word): TGumpInfo;
DWS overload:
procedure GetGumpInfo(GumpIndex: Word; var GumpInfo: TGumpInfo);
procedure GetGumpInfo(GumpIndex: Word; var GumpInfo: TGumpInfo);
def GetGumpInfo(GumpIndex: int) -> GumpInfo: ...
PascalScript:
var
gi: TGumpInfo;
begin
GetGumpInfo(0, gi);
AddToSystemJournal('GumpID: $' + IntToHex(gi.GumpID, 8));
AddToSystemJournal('Buttons: ' + IntToStr(Length(gi.GumpButtons)));
AddToSystemJournal('Text lines: ' + IntToStr(Length(gi.Text)));
end.
DWScript — auto-stringify the entire record:
begin
AddToSystemJournal(GetGumpInfo(0));
end.
gi = GetGumpInfo(0)
AddToSystemJournal(f'GumpID: ${gi.GumpID:08X}')
AddToSystemJournal(f'Buttons: {len(gi.GumpButtons)}')
AddToSystemJournal(f'Text lines: {len(gi.Text)}')
GetGumpsCount, GetGumpID, GetGumpSerial, GetGumpTextLines, NumGumpButton, WaitGump, CloseSimpleGump