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

GetGumpShortLines

Returns abbreviated gump info for the gump at index GumpIndex — includes only text entries, text lines, and buttons.

Returns nothing if the gump index is out of range or the character is disconnected.

For full gump info, use GetGumpFullLines. For buttons only, use GetGumpButtonsDescription.

Возвращает сокращённую информацию о гампе с индексом GumpIndex — только текстовые поля, текстовые строки и кнопки.

Не возвращает ничего, если индекс гампа вне диапазона или персонаж не подключён.

Для полной информации используйте GetGumpFullLines. Для кнопок — GetGumpButtonsDescription.

DWS

function GetGumpShortLines(GumpIndex: Word): TArray<String>;

DWS overload:

procedure GetGumpShortLines(GumpIndex: Word; var TL: TStringList);

Pascal Script

procedure GetGumpShortLines(GumpIndex: Word; var TL: TStringList);

Python

def GetGumpShortLines(GumpIndex: int) -> list[str]: ...

Pascal Example

DWS:

var
  Lines: TArray<String>;
  i: Integer;
begin
  Lines := GetGumpShortLines(0);
  for i := 0 to Length(Lines) - 1 do
    AddToSystemJournal(Lines[i]);
end.

Pascal Script:

var
  TL: TStringList;
  i: Integer;
begin
  TL := TStringList.Create;
  try
    GetGumpShortLines(0, TL);
    for i := 0 to TL.Count - 1 do
      AddToSystemJournal(TL[i]);
  finally
    if Assigned(TL) then
      TL.Free;
  end;
end.

Python Example

lines = GetGumpShortLines(0)
for line in lines:
    AddToSystemJournal(line)

See Also

GetGumpFullLines, GetGumpButtonsDescription, GetGumpTextLines, GetGumpInfo