Raised This Month: $ Target: $400
 0% 

Lengthen menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LeBabouin
Member
Join Date: Sep 2014
Old 11-18-2016 , 13:42   Lengthen menu
Reply With Quote #1

Hello,
My third day through the wiki and forum without any relevant result, could you please help me to make a menu that shows more than 7 items.
This is for the clent menu where you choose a taunt to play in the tauntem plugin, i would like to have all itams displayed without the need to paginate.

https://forums.alliedmods.net/showpo...6&postcount=46

Thanks a lot for any clue!
__________________
LeBabouin is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 11-18-2016 , 13:51   Re: Lengthen menu
Reply With Quote #2

You can't achieve this from Pawn. Menus made through SM will always reserve those slots.

If you wanted to write an extension (or perhaps provide a PR for SM, but I don't know if we'd accept it), you could probably provide up to ten slots for your own menu items if you didn't want next/back/cancel buttons.
Fyren is offline
LeBabouin
Member
Join Date: Sep 2014
Old 11-18-2016 , 15:31   Re: Lengthen menu
Reply With Quote #3

Argh sad. Thanks a lot for the info! At least i can quit searching. I would have need the room for 20 items, so hard work for 3 more slots isn't seductive at this moment.
__________________
LeBabouin is offline
Deathknife
Senior Member
Join Date: Aug 2014
Old 11-18-2016 , 16:30   Re: Lengthen menu
Reply With Quote #4

You can disable item pagination with this
PHP Code:
SetMenuPagination(menuMENU_NO_PAGINATION); 
And if you want to get rid of the exit button so you can use that slot as well:
PHP Code:
SetMenuExitButton(menufalse); 
Alternatively you can create a panel.
__________________

Last edited by Deathknife; 11-18-2016 at 16:30.
Deathknife is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 11-18-2016 , 16:58   Re: Lengthen menu
Reply With Quote #5

Deathknife, he want more then 10 items in menu
__________________
Grey83 is offline
LeBabouin
Member
Join Date: Sep 2014
Old 11-18-2016 , 17:57   Re: Lengthen menu
Reply With Quote #6

I just tried SetMenuPagination(menu, MENU_NO_PAGINATION) and SetMenuPagination(menu, 20) just in case of a miracle and then i see Grey's post I guess i wont be more happy with the panels.
__________________

Last edited by LeBabouin; 11-18-2016 at 17:58.
LeBabouin is offline
Deathknife
Senior Member
Join Date: Aug 2014
Old 11-18-2016 , 18:06   Re: Lengthen menu
Reply With Quote #7

Quote:
Originally Posted by Grey83 View Post
Deathknife, he want more then 10 items in menu
Well, he's OP says more than 7.

Quote:
Originally Posted by LeBabouin View Post
I just tried SetMenuPagination(menu, MENU_NO_PAGINATION) and SetMenuPagination(menu, 20) just in case of a miracle and then i see Grey's post I guess i wont be more happy with the panels.
What keys do you expect them to get triggered by? You can have 20 lines, just won't be items.
__________________
Deathknife is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 11-19-2016 , 06:21   Re: Lengthen menu
Reply With Quote #8

Quote:
Originally Posted by Deathknife View Post
Well, he's OP says more than 7.
but plugin have more then 10 items in menu
__________________
Grey83 is offline
Deathknife
Senior Member
Join Date: Aug 2014
Old 11-19-2016 , 17:00   Re: Lengthen menu
Reply With Quote #9

Quote:
Originally Posted by Grey83 View Post
but plugin have more then 10 items in menu
Yeah but they are paginated. He's asking for more than 7 without pagination.
__________________
Deathknife is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 11-21-2016 , 08:36   Re: Lengthen menu
Reply With Quote #10

Quote:
Originally Posted by LeBabouin View Post
I guess i wont be more happy with the panels.
If you want panels and not menus, then you can have more lines on screen at once. What are you actually trying to do?
Fyren is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:23.


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