CloseMenu
Closes all currently open menus in Stealth for the current character.
For each open menu, a MenuCancel response is sent to the server.
Unlike CancelAllMenuHooks (which removes traps), this method closes actually open menu windows.
Client behavior: For Orion client, the menu will actually close visually. For other connected clients (ClassicUO, TazUO, legacy 2D/3D), the menu does not close on the client side — instead, the client receives the message
"Menu reply sent from stealth".
Закрывает все открытые в данный момент меню в Stealth для текущего персонажа.
Для каждого открытого меню на сервер отправляется ответ MenuCancel.
В отличие от CancelAllMenuHooks (который удаляет ловушки), этот метод закрывает фактически открытые окна меню.
Поведение клиентов: В клиенте Orion меню реально закроется визуально. В других подключённых клиентах (ClassicUO, TazUO, legacy 2D/3D) меню на стороне клиента не закрывается — вместо этого клиент получает сообщение
"Menu reply sent from stealth".
procedure CloseMenu;
def CloseMenu() -> None: ...
begin
CloseMenu;
AddToSystemJournal('All menus closed');
end.
CloseMenu()
AddToSystemJournal('All menus closed')