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

GetGumpButtonsDescription

Returns button descriptions for the gump at index GumpIndex in the gump list.

Contains info only for buttons (unlike GetGumpShortLines or GetGumpFullLines which include other elements).

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

Возвращает описания кнопок гампа с индексом GumpIndex в списке гампов.

Содержит информацию только о кнопках (в отличие от GetGumpShortLines или GetGumpFullLines, которые включают другие элементы).

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

DWS

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

DWS overload (TStringList variant):

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

Pascal Script

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

Python

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

Pascal Example

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

Python Example

buttons = GetGumpButtonsDescription(GetGumpsCount() - 1)
for line in buttons:
    AddToSystemJournal(line)

See Also

GetGumpShortLines, GetGumpFullLines, GetGumpTextLines, GetGumpInfo