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, без информации о структуре элементов.
Не возвращает ничего, если индекс гампа вне диапазона или персонаж не подключён.
function GetGumpTextLines(GumpIndex: Word): TArray<String>;
DWS overload:
procedure GetGumpTextLines(GumpIndex: Word; var TL: TStringList);
procedure GetGumpTextLines(GumpIndex: Word; var TL: TStringList);
def GetGumpTextLines(GumpIndex: int) -> list[str]: ...
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.
lines = GetGumpTextLines(GetGumpsCount() - 1)
for line in lines:
AddToSystemJournal(line)