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