GetGumpShortLines
Retrieve info about 3 gump elements for the gump with list index GumpIndex
Returns nothing if gump index incorrect (out of gumps list) or char disconnected.
Method is similar to GetGumpButtonsDescription and GetGumpFullLines, but contains info ONLY for: a)TextEntries b)TextLines c)Buttons
Warning: param (with type TStringList) should be created before calling GetFindedList and be disposed after!
NB: DWS have overloaded method version, which returns array of string and dont need any init before.
procedure GetGumpShortLines(GumpIndex : Integer; var TL : TStringList);
procedure GetGumpShortLines(GumpIndex : Integer; var TL : TStringList);
function GetGumpShortLines(GumpIndex : Word) : TArray<String>;
Pascal Example:
var
b : TStringList;
i,k : Integer;
Begin
b := TStringList.Create;
for i := 0 to GetGumpsCount - 1 do
begin
GetGumpShortLines(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 GetGumpShortLines(GumpIndex): --> list of string