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).
procedure CloseSimpleGump(GumpIndex: Word);
Parameters:
- GumpIndex — index of the gump in the Stealth gump list (0-based).
def CloseSimpleGump(GumpIndex: int) -> None: ...
var
i: Integer;
begin
// Close all closable gumps
for i := GetGumpsCount - 1 downto 0 do
begin
if IsGumpCanBeClosed(i) then
CloseSimpleGump(i);
end;
end.
# Close all closable gumps
for i in range(GetGumpsCount() - 1, -1, -1):
if IsGumpCanBeClosed(i):
CloseSimpleGump(i)
CloseClientGump, GetGumpsCount, IsGumpCanBeClosed, GetGumpInfo