Menu Question
How to delete the (back/next page) from a menu?
|
Re: Menu Question
#define MPROP_PERPAGE 1 /* Number of items per page (param1 = number, 0=no paginating, 7=default) */
setting it to 0 will also remove the exit option, if you still want it you have to re-create it |
Re: Menu Question
And how I re-create the exit function? (to 0) if MPROP_PERPAGE IS 0
|
Re: Menu Question
/**
* Adds a blank line to a menu. * * @param menu Menu resource identifier. * @param slot 1 (default) if the line should shift the numbering down. * 0 if the line should be a visual shift only. * @noreturn * @error Invalid menu resource. */ native menu_addblank(menu, slot=1); |
Re: Menu Question
What?
|
Re: Menu Question
Quote:
|
Re: Menu Question
You cannot add two blanks in a row, it won't work. The whole menu_addblank native seems flawed and you should use ^n in the previous item for a newline instead.
Also, this is completely unnecessary. MPROP_PERPAGE doesn't remove the exit button and while the .inc file says it's deprecated, it really isn't. menu_setprop( menu, MPROP_PERPAGE, 0 ) positions the Exit button at slot 0 and also removes the previous/next items IIRC. |
Re: Menu Question
Quote:
|
Re: Menu Question
Oh, that sucks. Wouldn't force showing it again with MPROP_EXIT work? It probably won't, but it's worth trying at least.
|
Re: Menu Question
The solution is to not put more than MPROP_PERPAGE items in the menu. If MPROP_PERPAGE is set to 3 and you have 3 menu items, there will be no paginating and thus no next/back options.
|
| All times are GMT -4. The time now is 21:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.