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

GetGumpButtonsDescription

Retrieve all Buttons info 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 GetGumpFullLines, but contains info ONLY for buttons.

Pascal Syntax:

procedure GetGumpButtonsDescription(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  
  GetGumpButtonsDescription(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 GetGumpButtonsDescription(GumpIndex): --> list of string