View Single Post
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 05-23-2019 , 12:33   Re: grey out menu entries
Reply With Quote #2

You can find menu defines in the menus.inc file.

Code:
#define ITEMDRAW_DEFAULT		(0)		/**< Item should be drawn normally */
#define ITEMDRAW_DISABLED		(1<<0)	/**< Item is drawn but not selectable */
#define ITEMDRAW_RAWLINE		(1<<1)	/**< Item should be a raw line, without a slot */
#define ITEMDRAW_NOTEXT			(1<<2)	/**< No text should be drawn */
#define ITEMDRAW_SPACER			(1<<3)	/**< Item should be drawn as a spacer, if possible */
#define ITEMDRAW_IGNORE	((1<<1)|(1<<2))	/**< Item should be completely ignored (rawline + notext) */
#define ITEMDRAW_CONTROL		(1<<4)	/**< Item is control text (back/next/exit) */
PHP Code:
Menu.AddItem("info""display"ITEMDRAW_DISABLED); 
Kolapsicle is offline