Add fake menu_additem ( New Menus )
How to add a fake text to the menu and it can't be pressed, just a text also with numbers . ?
PHP Code:
|
Re: Add fake menu_additem ( New Menus )
In your menu_function():
PHP Code:
PHP Code:
|
Re: Add fake menu_additem ( New Menus )
I don't want it handled, I just want it unpressable :/
|
Re: Add fake menu_additem ( New Menus )
Make a callback for the menuitem and return ITEM_DISABLED in the callback...
|
Re: Add fake menu_additem ( New Menus )
Is there any reason for not wanting it to be called?
Just call your menu back when it gets pressed |
Re: Add fake menu_additem ( New Menus )
Quote:
Example 1: Code:
Example 2: Code:
|
Re: Add fake menu_additem ( New Menus )
Thanks much! I didn't really know what the functions means.
Btw ,works fine. Emp should add to his 'New Menus' tutorial about this. |
Re: Add fake menu_additem ( New Menus )
Or maybe you can use:
Code:
|
Re: Add fake menu_additem ( New Menus )
That sucks , I've tryied to add text, I was getting errors in log + it not associates with 'item', menucallback did the trick
|
Re: Add fake menu_additem ( New Menus )
Well yeah, thats true, it not associates with item, but... about the errors in log.. that is becouse you are doing something wrong =p. If I am not wrong, you only can use that native when you have an item in the menu.
|
| All times are GMT -4. The time now is 17:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.