Raised This Month: $202 Target: $400
 50% 

items per page ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neon123
Senior Member
Join Date: Jan 2016
Old 06-16-2021 , 16:19   items per page ?
Reply With Quote #1

hi, how i can create a menu with 8 items (not previos or next buttons 8,9)

like amxx

PHP Code:
menu_setprop(menuMPROP_PERPAGE8
but for sourcemod, its possible that ?

Last edited by Neon123; 06-16-2021 at 16:19.
Neon123 is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 06-16-2021 , 17:51   Re: items per page ?
Reply With Quote #2

You can try to play with SetMenuPagination or Menu.Pagination on Transitional Syntax.

Code:
Menu hMenu = new Menu( MenuHandlerFunc );
hMenu.AddItem( "a", "1st" );
hMenu.AddItem( "b", "2nd" );
hMenu.AddItem( "c", "3rd" );
hMenu.SetTitle( "Total items: %i", hMenu.ItemCount );
hMenu.Pagination = 8;
hMenu.Display( client, MENU_TIME_FOREVER );
__________________

Last edited by MAGNAT2645; 06-16-2021 at 17:52.
MAGNAT2645 is offline
Neon123
Senior Member
Join Date: Jan 2016
Old 06-16-2021 , 18:18   Re: items per page ?
Reply With Quote #3

thanks, solved, i used SetMenuPagination

Last edited by Neon123; 06-16-2021 at 18:19.
Neon123 is offline
Reply


Thread Tools
Display Modes

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 00:55.


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