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

CloseSimpleGump

Closes the gump at the specified index in the Stealth gump list.

Only gumps without the NoClose property can be closed this way. Use IsGumpCanBeClosed to check beforehand.

The gump index can be obtained from GetGumpsCount (indices are 0-based).

Закрывает гамп по указанному индексу в списке гампов Stealth.

Закрыть можно только гампы без свойства NoClose. Используйте IsGumpCanBeClosed для предварительной проверки.

Индекс гампа можно получить через GetGumpsCount (нумерация с 0).

Pascal

procedure CloseSimpleGump(GumpIndex: Word);

Parameters:

  • GumpIndex — index of the gump in the Stealth gump list (0-based).

Python

def CloseSimpleGump(GumpIndex: int) -> None: ...

Pascal Example

var
  i: Integer;
begin
  // Close all closable gumps
  for i := GetGumpsCount - 1 downto 0 do
  begin
    if IsGumpCanBeClosed(i) then
      CloseSimpleGump(i);
  end;
end.

Python Example

# Close all closable gumps
for i in range(GetGumpsCount() - 1, -1, -1):
    if IsGumpCanBeClosed(i):
        CloseSimpleGump(i)

See Also

CloseClientGump, GetGumpsCount, IsGumpCanBeClosed, GetGumpInfo