Hello,
I'm trying to edit the mapchooser plugin to disable first 3 choices in map vote menu, but without success. The first options 1-3 is still selectable.
This is my code:
PHP Code:
g_VoteMenu = new Menu(Handler_MapVoteMenu, MENU_ACTIONS_ALL);
g_VoteMenu.SetTitle("Vote Nextmap");
g_VoteMenu.AddItem("", "", ITEMDRAW_DISABLED);
g_VoteMenu.AddItem("", "", ITEMDRAW_DISABLED);
g_VoteMenu.AddItem("", "", ITEMDRAW_DISABLED);
I have tried also ITEMDRAW_RAWLINE, but still nothing.
Edit:
Changing
MENU_ACTIONS_ALL to
MenuAction_Display | MenuAction_End | MenuAction_DisplayItem | MenuAction_Cancel partially solves the problem, but it creates pagination: 4-6 map names, 7 empty, 8 "Next". How to display map names on positions 4-8 without pagination?
Edit2: Fixed by adding line:
SetMenuPagination(g_VoteMenu, MENU_NO_PAGINATION);