1.1 --- a/plugins/include/menus.inc Tue Nov 20 04:36:38 2007 +0000
1.2 +++ b/plugins/include/menus.inc Tue Nov 20 17:16:50 2007 +0000
1.3 @@ -733,6 +733,26 @@
1.4 native RedrawMenuItem(const String:text[]);
1.5
1.6 /**
1.7 + * This function is provided for legacy code only. Some older plugins may use
1.8 + * network messages instead of the panel API. This function wraps the panel
1.9 + * API for eased portability into the SourceMod menu system.
1.10 + *
1.11 + * This function is only usable with the Radio Menu style. You do not need to
1.12 + * split up your menu into multiple packets; SourceMod will break the string
1.13 + * up internally.
1.14 + *
1.15 + * @param client Client index.
1.16 + * @param str Full menu string as would be passed over the network.
1.17 + * @param time Time to hold the menu for.
1.18 + * @param keys Selectable key bitstring.
1.19 + * @param handler Optional handler function, with the same rules as
1.20 + * SendPanelToClient().
1.21 + * @return True on success, false on failure.
1.22 + * @error Invalid client index, or radio menus not supported.
1.23 + */
1.24 +native bool:InternalShowMenu(client, const String:str[], time, keys=-1, MenuHandler:handler=MenuHandler:-1);
1.25 +
1.26 +/**
1.27 * Retrieves voting information from MenuAction_VoteEnd.
1.28 *
1.29 * @param param2 Second parameter of MenuAction_VoteEnd.