SendPanelToClient Function

Sends a panel to a client. Unlike full menus, the handler function will only receive the following actions, both of which will have INVALID_HANDLE for a menu, and the client as param1.

MenuAction_Select (param2 will be the key pressed) MenuAction_Cancel (param2 will be the reason)

Also, if the menu fails to display, no callbacks will be called.

bool SendPanelToClient(Handle panel, int client, MenuHandler handler, int time)

Parameters

Handle panel

A MenuPanel Handle.

int client

A client to draw to.

MenuHandler handler

The MenuHandler function to catch actions with.

int time

Time to hold the menu for.

Return Value

True on success, false on failure.

Errors

Invalid Handle.