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

GetGumpTextLines

Retrieve all text lines for the gump with list index GumpIndex

Returns nothing if gump index incorrect (out of gumps list) or char disconnected.

Method is similar to GetGumpShortLines and GetGumpButtonsDescription, but contains info ONLY text lines, no info about gump elements.

Pascal Syntax:

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

Warning: param (with type TStringList) should be created before calling GetFindedList and be disposed after!

Pascal Example:

var 
b : TStringList; 
i,k : Integer; 

Begin 
b := TStringList.Create; 
for i := 0 to GetGumpsCount - 1 do 
begin  
  GetGumpTextLines(i,b); 
  if b.Count > 0 then
  begin
    for k := 0 to b.Count - 1 do   
      if b.Strings[i] = 'xxx' then
      //some work here  
  end; 
end;
b.free; 
End.

Python Syntax:

def GetGumpTextLines(GumpIndex): --> list of string