Update newmenus.inc

This commit is contained in:
OciXCrom 2018-07-28 13:58:23 +02:00 committed by GitHub
parent b8c540a450
commit e6c6021d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,22 +359,29 @@ native menu_addtext2( menu, const text[] );
/** /**
* Sets a menu property. * Sets a menu property.
* *
* @param menu Menu resource identifier. * @param menu Menu resource identifier.
* @param prop MPROP_ constant. * @param prop MPROP_ constant.
* @param ... Property parameters. * @param ... Property parameters.
* @return 1 on success, 0 on failure. * @return 1 on success, 0 on failure.
* @error Invalid menu resource or property. * @error Invalid menu resource or property.
*/ */
native menu_setprop(menu, prop, ...); native menu_setprop(menu, prop, ...);
/** /**
* Gets a menu property. * Gets a menu property.
* *
* @param menu Menu resource identifier. * @note If the value of the property is a string, you should pass
* @param prop MPROP_ constant. * two additional parameters - one for the buffer and another one
* @param ... Property parameters. * for the buffer length. Integer values are directly returned by
* @return Menu property if the property type is an integer. * the function, so no extra parameters are required.
* @error Invalid menu resource or property. * Example #1: menu_getprop(iMenu, MPROP_TITLE, szTitle, charsmax(szTitle))
* Example #2: new iPerPage = menu_getprop(iMenu, MPROP_PERPAGE)
*
* @param menu Menu resource identifier.
* @param prop MPROP_ constant.
* @param ... Property parameters.
* @return Menu property if the property type is an integer.
* @error Invalid menu resource, invalid property or invalid amount of parameters.
*/ */
native menu_getprop(menu, prop, ...); native menu_getprop(menu, prop, ...);
@ -383,8 +390,8 @@ native menu_getprop(menu, prop, ...);
* The menu will still exist on their screen but any results are invalidated, * The menu will still exist on their screen but any results are invalidated,
* and the callback is invoked. * and the callback is invoked.
* *
* @param player Client index. * @param player Client index.
* @noreturn * @noreturn
* @error Invalid client index. * @error Invalid client index.
*/ */
native menu_cancel(player); native menu_cancel(player);