added menu padding

This commit is contained in:
David Anderson 2006-02-06 15:27:02 +00:00
parent 2879c86d79
commit 208a57eaf8
2 changed files with 11 additions and 0 deletions

View File

@ -301,6 +301,9 @@ enum {
#define MEXIT_NORMAL 0
#define MEXIT_NEVER -1
#define MENUPAD_NONE 0 //no padding (default)
#define MENUPAD_PAGE 1 //pads based on items per page
#define MPROP_PERPAGE 1 //NUM - items per page. 0=no paginating, 7=default
#define MPROP_BACKNAME 2 //STRING - name of "back" button
#define MPROP_NEXTNAME 3 //STRING - name of "more" button
@ -311,3 +314,5 @@ enum {
//Send an 3-cell array with MENU_EXIT etc in the order
//(from 0-2), 0 being first
#define MPROP_NOCOLORS 8 //NUM - sets whether colors are not auto (0=default)
#define MPROP_PADMENU 9 //NUM - sets how the ending portions of a menu are padded
//i.e. 2 items, 7 per page, with endings at slots 5/6/7.

View File

@ -793,8 +793,14 @@ native menu_item_setcall(menu, item, callback=-1);
native menu_destroy(menu);
//Gets info about a player's menu. Returns 1 if the player is viewing a menu.
//menu will be >0 for a valid oldmenu. newmenu will be != -1 for a valid newmenu.
native player_menu_info(id, &menu, &newmenu);
//adds a blank line to a menu.
//if slot is nonzero (default), the blank line will increase
//the numbering rather than just shifting down.
native menu_addblank(menu, slot=1);
//Sets a menu property. See amxconst.inc for various menu properties.
//The third value depends on the property
native menu_setprop(menu, prop, ...);