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

GetGumpTextLines

Returns only the text lines for the gump at index GumpIndex, without any element structure info.

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

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

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

DWS

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

DWS overload:

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

Pascal Script

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

Python

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

Pascal Example

var
  Lines: TStringList;
  i: Integer;
begin
  Lines := TStringList.Create;
  GetGumpTextLines(GetGumpsCount - 1, Lines);
  for i := 0 to Lines.Count - 1 do
    AddToSystemJournal(Lines[i]);
  Lines.Free;
end.

Python Example

lines = GetGumpTextLines(GetGumpsCount() - 1)
for line in lines:
    AddToSystemJournal(line)

See Also

GetGumpShortLines, GetGumpFullLines, GetGumpInfo