menu_addblank changes location of Exit [Solved]
Is it not possible to force the Exit item to always be at key 0 no matter how many items and blanks that exists in the menu ?
Currently, if I use menu_addblank(menu, 0) it will change the Exit item to 9 instead of 0 and if I add another one it will change to 8, etc. PHP Code:
|
Re: menu_addblank changes location of Exit
I think it's impossible if you don't have 9 items on menu, you can use the old style menu
|
Re: menu_addblank changes location of Exit
Quote:
EDIT: PHP Code:
|
Re: menu_addblank changes location of Exit
Thanks both of you for trying to help me, I really appreciate it but for my needs I dont really want to use the old menu and ^SmileY your suggestion didnt work like I wanted it to.
I figured it out though. I simply put ^n in the menu that i want a blank menu under and it will add a blank row under that menu and it wont affect the position of the 0. Exit. For my purposes I need this to work with a dynamic menu system, all the menus are stored in cvars and adding ^n just wont cut it since its a cvar right ? So I simply made function to replace all ^^n (using an extra ^ to escape) with ^n so that it adds the ^n upon compiling (i think this is how the ^n works right ?). Anyway, its working and its more or less perfect. Again thanks for trying to help, I do appreciate any help I can get. |
Re: menu_addblank changes location of Exit [Solved]
i forgot to remove the exit button in menu, in fact is used as
menu_setprop(MPROP_MENU_EXIT,MEXIT_NEVER); i think. |
| All times are GMT -4. The time now is 06:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.