AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   new menus exit not showing? (https://forums.alliedmods.net/showthread.php?t=188503)

jimaway 06-27-2012 08:39

new menus exit not showing?
 
why isnt the exit button showing when i set
Code:
menu_setprop(nkmenu, MPROP_PERPAGE, 0)
(i have 8 items in the menu)

edit:
i found this:
http://forums.alliedmods.net/showthread.php?t=46364
Quote:

One can remove the Next, Back, and Exit buttons to show up to 10 items by using:
Code:

menu_setprop(menu, MPROP_PERPAGE, 0);

so i have to create my own exit button if i want it?

hornet 06-27-2012 08:52

Re: new menus exit not showing?
 
Yes that is correct. You can add more than 10 items, but I don't think there's a way to select the button for them.

Neeeeeeeeeel.- 06-27-2012 12:39

Re: new menus exit not showing?
 
Quote:

Originally Posted by jimaway (Post 1737140)
why isnt the exit button showing when i set Code:
menu_setprop(nkmenu, MPROP_PERPAGE, 0)

(i have 8 items in the menu)

edit:
i found this:
http://forums.alliedmods.net/showthread.php?t=46364


so i have to create my own exit button if i want it?

What are you trying to do?

jimaway 06-28-2012 05:24

Re: new menus exit not showing?
 
i wanted to turn paginating off for my menu and still have an exit button on it
also im not trying to to it anymore, i already did it

Neeeeeeeeeel.- 06-28-2012 16:46

Re: new menus exit not showing?
 
Use old style menu.

fysiks 06-28-2012 18:43

Re: new menus exit not showing?
 
You simply need to create an exit option manually just like every other item. Then, you handle it like a normal option and destroy the menu and return handled.


All times are GMT -4. The time now is 06:18.

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