SendPanelToClient

Last Updated2007-05-14
Created At2007-05-14

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.

native 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

bool True on success, false on failure.

Error

Invalid Handle.