CloseClientUIWindow
Closes a client UI window of the specified type for the object with the given ID.
Закрывает окно клиентского интерфейса указанного типа для объекта с данным ID.
procedure CloseClientUIWindow(UIWindowType: TUIWindowType; ID: Cardinal);
Parameters:
- UIWindowType — type of the window to close.
- ID — object ID associated with the window.
Type definition:
TUIWindowType = (wtPaperdoll, wtStatus, wtCharProfile, wtContainer);
| Value | Constant | Window |
|---|---|---|
| 0 | wtPaperdoll |
Paperdoll window |
| 1 | wtStatus |
Status bar |
| 2 | wtCharProfile |
Character profile |
| 3 | wtContainer |
Container gump |
def CloseClientUIWindow(UIWindowType: int, ID: int) -> None: ...
begin
// Close the paperdoll window for the current character
CloseClientUIWindow(wtPaperdoll, Self);
// Close a container gump
CloseClientUIWindow(wtContainer, Backpack);
end.
# Close the paperdoll window (0 = wtPaperdoll)
CloseClientUIWindow(0, Self())
# Close a container gump (3 = wtContainer)
CloseClientUIWindow(3, Backpack())