AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu without exit option (https://forums.alliedmods.net/showthread.php?t=120278)

benamo6 03-02-2010 17:20

Menu without exit option
 
How do I make a menu without an exit option?

Exolent[jNr] 03-02-2010 17:28

Re: Menu without exit option
 
MPROP_PERPAGE -> 0

benamo6 03-02-2010 17:33

Re: Menu without exit option
 
mmm But where should I set that PROP and how?

Emp` 03-02-2010 17:39

Re: Menu without exit option
 
https://forums.alliedmods.net/showth...46364#newmenus

benamo6 03-02-2010 17:54

Re: Menu without exit option
 
Is this okay?
menu_setprop(menu, MPROP_PERPAGE , 0);

wrecked_ 03-02-2010 19:21

Re: Menu without exit option
 
Straight from Emp's link;
PHP Code:

#define MEXIT_ALL      1    /* Menu will have an exit option (default)*/
#define MEXIT_NEVER  -1      /* Menu will not have an exit option */

#define MPROP_PERPAGE   1    /* Number of items per page (param1 = number, 0=no paginating, 7=default) */
#define MPROP_BACKNAME  2  /* Name of the back button (param1 = string) */
#define MPROP_NEXTNAME  3  /* Name of the next button (param1 = string) */
#define MPROP_EXITNAME  4  /* Name of the exit button (param1 = string) */
#define MPROP_TITLE  5        /* Menu title text (param1 = string) */
#define MPROP_EXIT    6  /* Exit functionality (param1 = number, see MEXIT constants) */
#define MPROP_NOCOLORS  8  /* Sets whether colors are not auto (param1 = number, 0=default) */
#define MPROP_NUMBER_COLOR  10    /* Color indicator to use for numbers (param1 = string, "\r"=default) */ 


hleV 03-03-2010 08:08

Re: Menu without exit option
 
Code:
menu_setprop(Menu, MPROP_EXIT, MEXIT_NEVER);


All times are GMT -4. The time now is 08:45.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.