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

CloseClientUIWindow

Closes a client UI window of the specified type for the object with the given ID.

Закрывает окно клиентского интерфейса указанного типа для объекта с данным ID.

Pascal

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

Python

def CloseClientUIWindow(UIWindowType: int, ID: int) -> None: ...

Pascal Example

begin
  // Close the paperdoll window for the current character
  CloseClientUIWindow(wtPaperdoll, Self);

  // Close a container gump
  CloseClientUIWindow(wtContainer, Backpack);
end.

Python Example

# Close the paperdoll window (0 = wtPaperdoll)
CloseClientUIWindow(0, Self())

# Close a container gump (3 = wtContainer)
CloseClientUIWindow(3, Backpack())